JBIDE-18237 NPE when editing HTML page in VPE

what is this fixing ? and should the getAdapter() still be called to avoid NPE ?