Avoid nullpointer.