Open kratz74 opened 7 years ago
fix.zip Here is diff that removed NPEs in my environment. I'm not sure with exact meaning of null value in
if (flagValueAtLocation != null && !flagValueAtLocation) {
so maybe this condition needs to be fixed.
Again, this is another show stopper, now on server side, so please have a look at it ASAP. Thanks.
Try deleting the database
Yes, it may help. But having NPE in the code is not good anyway. Code in checkExist is wrong because getFlagValueAtLocation returns Boolean instance and implicit cast to boolean in if expression causes NPE when it returns null. Also getFlagValueAtLocation can return null even without my changes.
I think they won't fix, the project seems to be abandoned :/
There is some commit activity from the end of July and last release is from April 2016 so it does not look like dead code. I use modified versions of this old mod for 1.6.4 and current code for 1.7.10 so I believe there is a chance to see this fixed. Also I gave them an idea how to fix it so it should be simple. Edit: I found MyTown as best one to satisfy my current needs for residence protection so hope it won't die soon.
Same :/
https://github.com/kratz74/MyTown2 is my fork with few things fixed including this one.
NPE in mytown.protection.ProtectionManager.getFlagValueAtLocation is being thrown during world generation:
After fixing this there is another one
I got them after adding CustomMobSpawner and MoCreatures into modpack and generating new world.