Server crash if invalid Regex is supplied to routing table
cpw opened this issue ยท 4 comments
https://gist.github.com/cpw/e5a1ddc39d4086b4b17f occurs and takes down the server if the routing table is not a valid regex. Probably should catch and ignore somehow. This is a server murderer btw - the server won't start without somehow deleting the block..
Looks like you are using the Railcraft Beta release, is that correct?
I can't see CovertJaguar's code release for the beta, but the pull request that I created (https://github.com/CovertJaguar/Railcraft/pull/497/files) has the logic.isValid() check on TileSwitchRouting.java:120 which should keep that from happening. I'll check with CJ to see what's going on.
@ssotangkur the switch code is here: https://github.com/CovertJaguar/Railcraft/tree/switches
I think this might actually be my fault. I probably need to add some more error handling for the new Regex stuff. I don't recall specifically testing invalid Regex strings.