I created a local minecraft server dedicated to Mojang's own Server.jar and added some mods and it worked perfectly, but sometimes when disconnecting we were unable to reconnect (including me on the same machine as the server) and we kept getting the error java.lang.nullpointerexception but after a random amount of time we managed to reconnect. If anyone knows why this error is occurring and could help us, I would greatly appreciate it.