Forum rules - please read before posting.

RuntimeInventory NullReferenceException

edited October 2014 in Engine development
I got a new error after the 1.39 update. It happens every time my loading screen scene is called up. The loading screen scene does not contain any AC objects. Are empty transition scenes still supported?

Console Error:
NullReferenceException: Object reference not set to an instance of an object
AC.RuntimeInventory.GetReferences () (at Assets/AdventureCreator/Scripts/Inventory/RuntimeInventory.cs:89)
AC.RuntimeInventory.OnLevelWasLoaded () (at Assets/AdventureCreator/Scripts/Inventory/RuntimeInventory.cs:66)

Otherwise this looks like another great update, as always!

Comments

  • edited October 2014
    Thanks for the alert.  Does it prevent the game from continuing?

    Fixed for 1.40, but you can correct it in in the meantime by going to RuntimeInventory.cs, line 66, and moving GetReferences (); down so that it's inside the if statement.
  • Excellent, thanks! 

    It did not stop the game from running within the editor, but I did not try running a build with it. I'll add this fix for now.
  • The next release came early, because of this and another critical bug.  Check 1.39a - it should work properly.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.