JBIDE-18368: Prevent NPE