0
Fixed

2.0.0a6 [Exception] NullReferenceException: Object reference not set to an instance of an object

Ex-Crow 7 months ago updated by Lazlo Bonin (Lead Developer) 6 months ago 2

This popped up when searching the fuzzy finder for "Null Check":

[Exception] NullReferenceException: Object reference not set to an instance of an object
UnitOptionTree+d__109.MoveNext()    Assets/Ludiq/Bolt.Flow/Editor/Options/UnitOptionTree.cs:1467
1465:       if (outputType == null || outputType.IsInstanceOfType(literal))
1466:       {
-->1467:           yield return new PresetLiteralOption(new Literal(literal.GetType(), literal));
1468:       }
1469:   }
System.Linq.Enumerable+EnumerablePartition`1[TSource].ToArray()    <351e49e2a5bf4fd6beabb458ce2255f3>:0
Enumerable.ToArray[TSource]()    <351e49e2a5bf4fd6beabb458ce2255f3>:0
FuzzyWindow.Populate()    Assets/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:24
22:   var i = 0;
-->24:   var _children = children.ToArray();
26:   lock (guiLock)
FuzzyWindow+<>c__DisplayClass44_0.b__0()    Assets/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:645
643:       }
-->645:       Populate(searchNode, tree.OrderedSearchResults(query, parent?.option, searchCancellationToken).Take(LudiqCore.Configuration.maxSearchResults));
646:       activeSelectedIndex = activeNodes.Count >= 1 ? 0 : -1;
647:   }
FuzzyWindow.RunTaskSynchronous()    Assets/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:1381
1379:   try
1380:   {
-->1381:       task();
1382:   }
1383:   catch (OperationCanceledException) { }
Debug.LogException()
FuzzyWindow.RunTaskSynchronous()    Assets/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:1386
1384:   catch (Exception ex)
1385:   {
-->1386:       Debug.LogException(ex);
1387:   }
1388:   finally
FuzzyWindow.Work()    Assets/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:1415
1413:           }
-->1415:           RunTaskSynchronous(task);
1416:       }
1417:   }
ThreadHelper.ThreadStart()
Bolt Version:
2.0.0a6
Unity Version:
2019.2.15
Platform(s):
PC
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2
Fixed (Unreleased)

Hi TowerCrow,

Thanks for the report. This will be fixed in the next version.