Nullpointer fix.