midspace / midspace/SEToolbox

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

Open
#159 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
156
Forks
62
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in SE Toolbox.Models.ExplorerModel.BuildGridEntityNodes() at line 1296, then inspect the call from ExplorerViewModel.SelectJoinedGridsExecuted() at line 996. Reproduce the crash by using “Select all mechanically connected” and trace which nullable value lacks a value; done means the selection completes without the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.