what I said from the beginning, its a null pointer crash.

Always check entities if they are there, before using them.