JBIDE-17924: Fixed possible NPE