nullpointer checks