0
Fixed

Bolt NullReferenceException: Object reference not set to an instance of an object

Timmeh 4 months ago updated by Dani 3 months ago 10 1 duplicate

Hi. I'm still a novice with unity, and just bought Bolt. This error is on a completely fresh installation of Bolt and Unity. I've tried it on both Unity version 1.14f1 (last stable version) and the latest 2.0f1.

The error occurs when use the setup Wizzard, right when I choose between Human or Programming text. I have tried generating Ludiq documentation, but that doesn't fix the issue. I noticed that it's referencing C:/Users/lazlo, but that is not a user on my PC and does not exist at all. I would be grateful for any help, here's the only error in the console.

NullReferenceException: Object reference not set to an instance of an object
Ludiq.GenerateDocumentationPage.Update () (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Windows/GenerateDocumentationWindow/GenerateDocumentationPage.cs:63)
Ludiq.Wizard.Update () (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Windows/Wizard.cs:96)
Ludiq.WrappedEditorWindow.Update () (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:39)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at :0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:359)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:353)
UnityEditor.HostView.SendUpdate () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:465)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:303)

Bolt Version:
1.4.5
Unity Version:
2019.2.0f1
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Duplicates 1

Pending Review

Hi Justin,

Sorry you're having this issue.

First off, try restarting Unity. Oldest trick in the book, but it often works for setup problems!

If that doesn't help, can you provide:

  1. a screenshot of the window you're seeing;
  2. the log from the console if any error or warning is shown

Thanks!

I have also tried to install with 2018.4.4f1...still only get that book with bookmark icon after I select human naming. an then i cannot proceed with the setup. Is there a help # to call? 

Hi Justin,

Thanks for following up with more information.

This looks very odd, I've never seen this issue. It doesn't seem directly related to Bolt, but Bolt fails to load because some of the project files look corrupt.

As an educated guess, I would try deleting the *.csproj and *.sln files at the root of your project's folder. Those are auto-generated by Unity, so you won't lose any data. It seems like they might be somehow corrupt.

Likewise, ProjectSettings/ProjectVersion.txt looks corrupt. According to a quick Google search, it looks like you had a merge conflict with your version control system. That might explain all the corrupt files! Here are some links to try:

https://answers.unity.com/questions/1505572/unable-to-parse-file-projectsettingsprojectversion.html

https://issuetracker.unity3d.com/issues/merge-conflict-in-projectversion-dot-txt-causes-unable-to-parse-file-error-on-any-project-opened

You could also try reverting to a commit of your project before any merge conflict.

Let me know if that helps!

Pending Review

Hi Timmeh,

Sorry for the late reply on this. Investigating this in a test project today, will keep you posted!

Working on Fix

Found a likely cause for the issue, fixing for v.1.4.6.

Hi I am also new to Bolt and Unity. And I was following the tutorial "Intro Cinemachine and Bolt" till I ran into this probem:

NullReferenceException: Object reference not set to an instance of an object
Bolt.GetListItem.Get (Bolt.Flow flow) (at C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Framework/Collections/Lists/GetListItem.cs:51)

Error Bolt and Cinemachine
Error Cinemachine and Bolt.jpg
Error Bolt version

I updated Bolt like you told in the issue above. Could you help with my probelm please?

Bolt Version:1.4.6
Unity Version:2019.2.0f1
.NET Version:4.x