Bug Issue: Hi. How can i fix this


Pages: 1

Liriz

  • Subscriber - Stencyl Indie
  • *
May 11, 2019, 09:57:32 am
TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at scripts::ActorEvents_672/init()[C:\Users\mdani\AppData\Roaming\Stencyl\stencylworks\games-generated\Nina\Source\scripts\ActorEvents_672.hx:84]
   at com.stencyl.behavior::Behavior/initScript()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\behavior\Behavior.hx:107]
   at com.stencyl.behavior::BehaviorManager/initScripts()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\behavior\BehaviorManager.hx:97]
   at com.stencyl.models::Actor/initScripts()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\models\Actor.hx:821]
   at com.stencyl::Engine/initActorScripts()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:1349]
   at com.stencyl::Engine/loadScene()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:1151]
   at com.stencyl::Engine/enterScene()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:1918]
   at com.stencyl::Engine/onUpdate()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2773]


Justin

  • Master Stencyler
  • *
June 27, 2019, 05:50:10 pm
Code: [Select]
TypeError: Error #1009: Cannot access a property or method of a null object reference.

This means that you're referring to something that doesn't exist. Perhaps an Actor that has died, or an attribute that hasn't been set yet.

Code: [Select]
[C:\Users\mdani\AppData\Roaming\Stencyl\stencylworks\games-generated\Nina\Source\scripts\ActorEvents_672.hx:84]
   at com.stencyl.behavior::Behavior/initScript()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\behavior\Behavior.hx:107]
   at com.stencyl.behavior::BehaviorManager/initScripts()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\behavior\BehaviorManager.hx:97]
   at com.stencyl.models::Actor/initScripts()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\models\Actor.hx:821]
   at com.stencyl::Engine/initActorScripts()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:1349]
   at com.stencyl::Engine/loadScene()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:1151]
   at com.stencyl::Engine/enterScene()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:1918]
   at com.stencyl::Engine/onUpdate()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2773]

See the first line, this is where the error occurred.

Code: [Select]
C:\Users\mdani\AppData\Roaming\Stencyl\stencylworks\games-generated\Nina\Source\scripts\ActorEvents_672.hx:84
You can find this file by pressing ctrl+o to access the "open resource" dialog, and type in "ActorEvents_672" in the search bar. Open that. Then, in the events tab, press ctrl+j to open the code preview, and go to line 84. This is where the error is in the code.


If you want to see the error directly in design mode, enable the menu item Run > View logs through Game Controller, then test your game again, and when you get to the error, it'll print it out in the Game Controller's "Logs" pane. You can click the error line on the upper pane to get more details in the lower pane. You can then click on the links in the lower pane to go to the different code files and behavior related to the error.
  • Status changed from New to Closed
« Last Edit: June 27, 2019, 05:50:00 pm by Justin »


Justin

  • Master Stencyler
  • *
June 27, 2019, 05:51:22 pm
Closing since this isn't a bug. You can ask in the "Ask a Question" or "Help Desk" section of the forum for further help.

If it turns out that your error is due to buggy behavior in Stencyl, please file a new issue.


Pages: 1

Details

  • Reported
    May 11, 2019, 09:57:32 am
  • Updated
    June 27, 2019, 05:51:22 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Compiling/Testing Games

Tags