C#C
C#8mo ago
engineertdog

✅ Object Reference is null, even with try/catch

What dumb thing could I be missing? I'm trying to add a custom object to a simple dictionary of string + custom object. In the debug, you'll see that the _storedPoints is not null, and the modifiedRow is not null. While not shown, modifiedRow.Name is not null either. Could it be that this error is caught on another thread (since this is from a Parallel.ForEach), and I'm just not seeing the correct object in my debug?
image.png
Was this page helpful?