NXP-11521: prevent possible NPE