Author: mareshkau
Date: 2011-03-03 04:42:26 -0500 (Thu, 03 Mar 2011)
New Revision: 29462
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
https://issues.jboss.org/browse/JBIDE-8115, fix NPE
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2011-03-03
04:06:42 UTC (rev 29461)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2011-03-03
09:42:26 UTC (rev 29462)
@@ -1089,7 +1089,7 @@
public void setSelectionRectangle(/* nsIDOMElement */List<nsIDOMNode> visualNodes)
{
int resizerConstrains = VpeTagDescription.RESIZE_CONSTRAINS_NONE;
- if(visualNodes.size()==1){
+ if(visualNodes!=null&&visualNodes.size()==1){
resizerConstrains = getResizerConstrains(visualNodes.get(0));
}
visualEditor.setSelectionRectangle(visualNodes, resizerConstrains);