protect against NPE