Catched nullpointer exceptions