JBIDE-18652: More elegant logging instead of NPE