JBIDE-17298 NPE when opening preview tab

fixed