XbimWindowsUI icon indicating copy to clipboard operation
XbimWindowsUI copied to clipboard

Null reference exception by using IfcSurfaceTexture

Open Noranius opened this issue 5 years ago • 0 comments

When applying an IfcImageTexture the Xplorer crashes with a null pointer exception. This circumstance is related to the line below because the material is not initialized before. Maybe just check for null before and if so, use a default material. https://github.com/xBimTeam/XbimWindowsUI/blob/6923e3c97cc0e374ec3a222db2d4b192063ec3a5/Xbim.Presentation/WpfMaterial.cs#L59

Noranius avatar Oct 14 '20 12:10 Noranius