midspace / SEToolbox

This is a comprehensive 'world' Save Editor for the 'Space Engineers' Game.
146 stars 62 forks source link

"Select all mechanically connected" results in crash "Nullable object must have a value" #159

Open ReikaKalseki opened 5 years ago

ReikaKalseki commented 5 years ago

https://i.imgur.com/wBHLVKH.png

Event log: https://pastebin.com/yEULRZHB

Specifically this bit of C#:


System.InvalidOperationException: Nullable object must have a value.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Nullable`1.get_Value()
   at SEToolbox.Models.ExplorerModel.BuildGridEntityNodes() in D:\Development\GitHub\SEToolbox\Main\SEToolbox\SEToolbox\Models\ExplorerModel.cs:line 1296
   at SEToolbox.ViewModels.ExplorerViewModel.SelectJoinedGridsExecuted(GridConnectionType minimumConnectionType) in D:\Development\GitHub\SEToolbox\Main\SEToolbox\SEToolbox\ViewModels\ExplorerViewModel.cs:line 996