Protect against possible NPE.