Menu

#2509 Stendhal: Bug at Groovy script

closed
nobody
None
5
2006-06-18
2006-06-18
No

1550680 [RPServerManager] ERROR
games.stendhal.server.StendhalRPRuleProcessor - error
in beginTurn
java.lang.NullPointerException: Cannot invoke method
plus() on null object
at
org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:129)
at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
at BailAction.fire(deathmatch.groovy:233)
at
games.stendhal.server.entity.npc.SpeakerNPC.executeState(SpeakerNPC.java:644)
at
games.stendhal.server.entity.npc.SpeakerNPC.matchState(SpeakerNPC.java:555)
at
games.stendhal.server.entity.npc.SpeakerNPC.tell(SpeakerNPC.java:619)
at
games.stendhal.server.entity.npc.SpeakerNPC.logic(SpeakerNPC.java:321)
at
games.stendhal.server.StendhalRPRuleProcessor.beginTurn(StendhalRPRuleProcessor.java:439)
at
marauroa.server.game.RPServerManager.run(RPServerManager.java:534)

Discussion

  • Hendrik Brummermann

    • status: open --> closed
     
  • Jo S.

    Jo S. - 2006-06-19

    Logged In: YES
    user_id=1501503

    The only way to prevent errors like that having fatal consequences is putting
    inner try catches to in beginTurn and endTurn. Currently if an error in any of the
    functions called for NPCs, Corpses, Scripts and whatever occurs, everything
    following after will be skipped.

     

Anonymous
Anonymous

Add attachments
Cancel