Stacktrace on entity with no animations

I created an entity that has no animatons but instead draws a white rectangle during the drawing event. There is also login within the update event for the actor. The game does not run on any of the runtimes. In the HTML5 runtime a null exception occurs on the following line:

if(doAll) this.currAnimationAsAnim.update(elapsedTime);

and stacktrace:

Uncaught TypeError: Cannot call method 'jeashInvalidateMatrix' of null
Uncaught TypeError: Cannot call method 'update' of null
Uncaught TypeError: Cannot call method 'update' of null
com.stencyl.models.Actor.$extend.internalUpdate
com.stencyl.models.Actor.$extend.innerUpdate
com.stencyl.Engine.update
com.stencyl.Engine.postUpdate
com.stencyl.Engine.onUpdate
$bind.f
jeash.events.Listener.dispatchEvent
jeash.events.EventDispatcher.dispatchEvent
jeash.display.DisplayObject.$extend.jeashDispatchEvent
jeash.display.DisplayObject.$extend.dispatchEvent
jeash.display.DisplayObjectContainer.$extend.jeashBroadcast
jeash.display.Stage.$extend.jeashStageRender
$bind.f

captaincomic

  • *
  • Posts: 6108
Fixed. But please note that it is not really intended to have actors without animations. Having an actor without animations in the game won't throw an exception now or freeze the game but it could still create unexpected behavior.