nullpointer deletePost