Author: vrubezhny
Date: 2008-10-23 15:55:56 -0400 (Thu, 23 Oct 2008)
New Revision: 11122
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2980 CA is broken with
java.lang.NullPointerException.
fixed
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java 2008-10-23
19:51:17 UTC (rev 11121)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java 2008-10-23
19:55:56 UTC (rev 11122)
@@ -219,6 +219,9 @@
}
public List<TaglibData> getIncludeTaglibs() {
+ if (getEditPart() == null) {
+ return new ArrayList<TaglibData>();
+ }
IEditorInput input = getEditPart().getEditorInput();
IFile file = null;
if (input instanceof IFileEditorInput) {