Fix a NullPointer crash.