Ludii Forum
Using certain ludemes in start rule causes java.lang.NullPointerException - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Grammar Problems (https://ludii.games/forums/forumdisplay.php?fid=24)
+--- Thread: Using certain ludemes in start rule causes java.lang.NullPointerException (/showthread.php?tid=1261)



Using certain ludemes in start rule causes java.lang.NullPointerException - fuerchter - 09-22-2022

Hi,
the (count Steps)(count Sites) and (size Stack) ludemes don't seem to work when used inside a start rule (causing java.lang.NullPointerException). I'd speculate this might be due to some parts of the board not being initialized yet? Here's an example. The (count Sites) version of this affects me in a game I was working on. Ludii 1.3.6.


RE: Using certain ludemes in start rule causes java.lang.NullPointerException - Eric Piette - 09-24-2022

Hi,

Yes, this issue is now fixed. That was related to some state generation. Anyway, in the next release, this will be fixed.
Thanks for this feedback ! :)

Regards,
Eric


RE: Using certain ludemes in start rule causes java.lang.NullPointerException - fuerchter - 10-30-2022

This looks like it's working in version 1.3.7, thanks.