Skip to content

pointcloud2meshconverter: pts intensity importer fails with null ref #33

@unitycoder

Description

@unitycoder

error:

NullReferenceException: Object reference not set to an instance of an object
unitycodercom_PointCloud2MeshConverter.PointCloud2MeshConverter.Convert2Mesh (System.String fileToRead) (at Assets/PointCloudTools/Editor/PointCloud2MeshConverter.cs:603)
unitycodercom_PointCloud2MeshConverter.PointCloud2MeshConverter.OnGUI () (at Assets/PointCloudTools/Editor/PointCloud2MeshConverter.cs:161)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

its fixed on next updated.

temporary fix: Open PointCloud2MeshConverter.cs
// find line
if (readRGB) colorArray = new Color[masterPointCount];

// replace with
if (readRGB == true || readIntensity == true) colorArray = new Color[masterPointCount];

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions