[Server] Fix NullpointerException