Defensive NPE protection