When opening the inventory and loosing the connection from the server (e.g. kicked from the console), the game crashes with the following crash report:
Description: Unexpected error
java.lang.NullPointerException: Unexpected error
Code analysis by Tobias Hotz can be found in this comment.