Author: mareshkau
Date: 2008-06-13 13:31:42 -0400 (Fri, 13 Jun 2008)
New Revision: 8764
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FaceletUtil.java
Log:
code adjustment
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FaceletUtil.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FaceletUtil.java 2008-06-13
12:42:22 UTC (rev 8763)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FaceletUtil.java 2008-06-13
17:31:42 UTC (rev 8764)
@@ -21,8 +21,8 @@
static public HashSet<String> componentElements = new HashSet<String>();
static {
- componentElements.add(TAG_COMPOSITION); //$NON-NLS-1$
- componentElements.add(TAG_COMPONENT); //$NON-NLS-1$
+ componentElements.add(TAG_COMPOSITION);
+ componentElements.add(TAG_COMPONENT);
}
/**
@@ -32,6 +32,10 @@
*/
public static Element findComponentElement(Element root) {
+ if(root==null) {
+
+ return null;
+ }
NodeList children = root.getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
Show replies by date