zwcloud / MeshTerrainEditor-issues

Mesh Terrain Editor issue tracking and online docs
https://zwcloud.github.io/MeshTerrainEditor-issues/
5 stars 3 forks source link

NRE when using conversion API #185

Closed zwcloud closed 3 years ago

zwcloud commented 3 years ago

reported by user 程序-风 QQ3326xx6

Object reference not set to an instance of an objectSystem.NullReferenceException: Object reference not set to an instance of an object
  at _ukSdRhLjX9DAKDq2Iz9WUst2xUg_._Z5axgWOB4YkFra9YZNDNA8SmGaE_ (UnityEngine.GameObject , MTE.TerrainConversionSettings , System.String& ) [0x011fe] in <6dc825af13b045509720798cf78470b3>:0 
  at MTE.MTEConversion.ConvertTerrainToMesh (UnityEngine.GameObject terrainGameObject, MTE.TerrainConversionSettings settings) [0x000d4] in <6dc825af13b045509720798cf78470b3>:0 

MTE version 3.8.2f1

zwcloud commented 3 years ago

This has been tested. This issue only happens when the passed in GameObject is null. But NRE should not be thrown, a later fix will throw ArgumentNullException instead.

zwcloud commented 3 years ago

This cannot be reproduced any more.