grabTest & attackTest methods causing crash

Bug #378569 reported by William Wynn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CockFight
Fix Committed
Critical
Unassigned

Bug Description

Game crashes as soon as you try to grab or attack and nothing is there. Not sure if it crashes if something is there. Not sure what changed to make this crash the game.

Exception in thread "Thread-2" java.lang.NullPointerException
 at cockfight.gameworld.Human.grabTest(Human.java:41)
 at cockfight.gameworld.Human.update(Human.java:118)
 at cockfight.gameworld.Game.updateWorld(Game.java:85)
 at cockfight.net.server.Server.run(Server.java:74)

Exception in thread "Thread-2" java.lang.NullPointerException
 at cockfight.gameworld.Human.attackTest(Human.java:65)
 at cockfight.gameworld.Human.update(Human.java:129)
 at cockfight.gameworld.Game.updateWorld(Game.java:85)
 at cockfight.net.server.Server.run(Server.java:74)

description: updated
summary: - grabTest Method causing crash
+ grabTest & attackTest methods causing crash
Revision history for this message
William Wynn (williamwynn) wrote :

Fix Committed by Andrey.

The game doesn't crash anymore!!!

Changed in cockfight:
importance: Undecided → Critical
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.