#4514 [Stendhal] AttackWeakestTest NPE on running test

closed-fixed
None
5
2010-03-30
2010-03-30
No

Hi, I was running this test to verify the failed behaviour below and i got an NPE:
(The server wasn't running at the time, and I ran it alone)

attack nearest expected:<Player
[test dummy, 252979098]> but
was:<Player [test dummy2,
-747582504]> at
games.stendhal.server.entity.creature.impl.AttackWeakestTest.testFindNewTargetFromDistance(AttackWeakestTest.java:147)

08:56 < kymara> it passed 12+ times in a row for me
but there is an NPE aswell

Exception in thread "Thread-1" java.lang.NullPointerException
at marauroa.server.db.command.DBCommandQueueBackgroundThread.processCommand(DBCommandQueueBackgroundThread.java:59)
at marauroa.server.db.command.DBCommandQueueBackgroundThread.run(DBCommandQueueBackgroundThread.java:43)
at java.lang.Thread.run(Thread.java:619)09:35

< hendrik> kymara, that one happens if a test tries to access the database but did not initialize it.

Discussion

  • Kimmo Rundelin

    Kimmo Rundelin - 2010-03-30
    • assigned_to: nobody --> kiheru
    • status: open --> closed-fixed
     
  • Kimmo Rundelin

    Kimmo Rundelin - 2010-03-30

    OK, thanks for the error report.
    Problem is now fixed in CVS.

     


Anonymous

Cancel  Add attachments





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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks