Fixed nullpointer expectation