NullPointerException in (move Remove) - Printable Version +- Ludii Forum (https://ludii.games/forums) +-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5) +--- Forum: Ludii Player Problems (https://ludii.games/forums/forumdisplay.php?fid=6) +--- Thread: NullPointerException in (move Remove) (/showthread.php?tid=139) |
NullPointerException in (move Remove) - ccxvii - 08-17-2020 When experimenting with some language features, I ran into a crash. I attached the example file. java.lang.NullPointerException at util.UnionFindD.evalD(UnionFindD.java:185) at util.action.move.ActionRemove.apply(ActionRemove.java:101) at util.Move.apply(Move.java:452) at game.Game.applyInternal(Game.java:1710) at game.Game.apply(Game.java:1664) at util.model.AlternatingMove.applyHumanMove(AlternatingMove.java:60) at manager.referee.Referee.lambda$applyHumanMoveToGame$0(Referee.java:198) at manager.referee.Referee.applyHumanMoveToGame(Referee.java:268) at manager.referee.UserMoveHandler.applyHumanMoveToGame(UserMoveHandler.java:715) at manager.referee.UserMoveHandler.userMove(UserMoveHandler.java:379) at manager.referee.UserMoveHandler.tryGameMove(UserMoveHandler.java:43) RE: NullPointerException in (move Remove) - cambolbro - 08-17-2020 Hi, That looks like a bug in our Union Find code that maintains the group records. Will investigate... Regards, Cameron RE: NullPointerException in (move Remove) - DennisSoemers - 08-25-2020 I've just tested again with our dev code after overhauling a bunch of the code related to this and it seems to be fixed (at least, no longer crashes). So that will be live in our next version. RE: NullPointerException in (move Remove) - DennisSoemers - 08-26-2020 Just in case you hadn't already noticed: the new 1.0.4 release where this should be fixed has been live since yesterday. |