Guard against possible NPEs