0
Fixed

NullReferenceException using flow graph

Real World 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 6
  • I've installed Bolt
  • Run the setup wizard
  • Created an empty game object
  • Added a State machine component
  • Tapped edit graph
  • Double clicked on the Start state
  • Right clicked in the graph editor and got the following exception
NullReferenceException: Object reference not set to an instance of an object
Ludiq.Namespace+Collection.TryGetValue (System.String key, Ludiq.Namespace& value) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Namespace.cs:150)
Ludiq.Namespace.FromFullName (System.String fullName) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Namespace.cs:102)
Ludiq.TypeUtility.Namespace (System.Type type) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/TypeUtility.cs:119)
Bolt.UnitOptionTree+<>c.<CodebaseChildren>b__27_1 (System.Type t) (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Options/UnitOptionTree.cs:338)
System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].ToArray () (at <11c1c8f1ba1046b191f565f88728429e>:0)
System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) (at <11c1c8f1ba1046b191f565f88728429e>:0)
System.Linq.OrderedEnumerable`1+<GetEnumerator>d__3[TElement].MoveNext () (at <11c1c8f1ba1046b191f565f88728429e>:0)
System.Linq.Enumerable+DistinctIterator`1[TSource].MoveNext () (at <11c1c8f1ba1046b191f565f88728429e>:0)
Bolt.UnitOptionTree+<CodebaseChildren>d__27.MoveNext () (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Options/UnitOptionTree.cs:337)
Bolt.UnitOptionTree+<CategoryChildren>d__38.MoveNext () (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Options/UnitOptionTree.cs:486)
System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <11c1c8f1ba1046b191f565f88728429e>:0)
Ludiq.FuzzyWindow.Populate (Ludiq.FuzzyOptionNode node, System.Collections.Generic.IEnumerable`1[T] childrenValues, System.Nullable`1[T] cancellation) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:36)
Ludiq.FuzzyWindow+<>c__DisplayClass31_0.<Initialize>b__0 () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:328)
Ludiq.FuzzyWindow.Work () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:217)
UnityEngine.Debug:LogException(Exception)
Ludiq.FuzzyWindow:Work() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:222)
System.Threading.ThreadHelper:ThreadStart()
Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Using Bolt 1.1.3 and Unity 2017.2.0f3

Fixed in Alpha

Hi Real World!

Welcome to the community and thanks for the report. This will be fixed in v.1.2.

Thanks. Is there an ETA on that as I can't use the asset at all at the moment

I'll submit it to the UAS this week, but PM me on Discord if you need an immediate built.

I've found an old build on my network  that seems to work. I'm ok for now thanks