#4391 NullPointerException in RPEntity.onAttack()

closed-fixed
yoriy
None
5
2010-02-01
2010-01-31
No

ERROR [main] EntityFactory.java ( 74) - Error creating entity for object: RPObject with Attributes of Class(creature): [hp=20][zoneid=0_semos_village_w][speed=0.5][visibility=100][width=1][class=small_animal][xp=100][type=creature][base_hp=20][id=61][level=0][height=1][dir=4][description=You see a small rat that seems to be extremely hungry.][name=rat][subclass=rat][resistance=100][title_type=enemy][y=35][x=20] and RPSlots and RPLink and RPEvents [RPEvent start_attack with Attributes of Class(start_attack): [target=63] and RPSlots ]
java.lang.NullPointerException
at games.stendhal.client.entity.RPEntity.onAttack(RPEntity.java:418)
at games.stendhal.client.entity.RPEntity.onStartAttack(RPEntity.java:412)
at games.stendhal.client.entity.RPEntity.initialize(RPEntity.java:707)
at games.stendhal.client.entity.Creature.initialize(Creature.java:98)
at games.stendhal.client.entity.factory.EntityFactory.createEntity(EntityFactory.java:70)
at games.stendhal.client.GameObjects.add(GameObjects.java:163)
at games.stendhal.client.GameObjects.onAdded(GameObjects.java:194)
at games.stendhal.client.RPObjectChangeDispatcher.fireAdded(RPObjectChangeDispatcher.java:166)
at games.stendhal.client.RPObjectChangeDispatcher.dispatchAdded(RPObjectChangeDispatcher.java:70)
at games.stendhal.client.StendhalPerceptionListener.onAdded(StendhalPerceptionListener.java:38)
at marauroa.client.net.PerceptionHandler.applyPerceptionAddedRPObjects(PerceptionHandler.java:192)
at marauroa.client.net.PerceptionHandler.apply(PerceptionHandler.java:102)
at games.stendhal.client.StendhalClient.onPerception(StendhalClient.java:253)
at marauroa.client.ClientFramework.loop(ClientFramework.java:601)
at games.stendhal.client.gui.j2DClient.gameLoop(j2DClient.java:528)
at games.stendhal.client.stendhal.main(stendhal.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at games.stendhal.client.update.Bootstrap.boot(Bootstrap.java:323)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at games.stendhal.client.update.Starter.main(Starter.java:70)

Discussion

  • yoriy

    yoriy - 2010-02-01

    thankx for testing it, fixed at the CVS repository now :-)

     
  • yoriy

    yoriy - 2010-02-01
    • status: open --> closed-fixed
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks