validate component ptr before selecting (EA-20209 - IAE: ComponentPtr.<init>)
authorDmitry Jemerov <yole@jetbrains.com>
Fri, 2 Jul 2010 16:33:26 +0000 (20:33 +0400)
committerDmitry Jemerov <yole@jetbrains.com>
Fri, 2 Jul 2010 16:33:26 +0000 (20:33 +0400)
plugins/ui-designer/src/com/intellij/uiDesigner/componentTree/ComponentTreeBuilder.java

index cdf2bde56c5a6112f90497726a1d5acfc7568123..a8b1d72362bf43c2ecb35cc34cc2d0f634c9bd91 100644 (file)
@@ -250,6 +250,7 @@ public final class ComponentTreeBuilder extends AbstractTreeBuilder {
         boolean hasComponentInTab = false;
         int count = 0;
         for(ComponentPtr ptr: selectedElements) {
+          ptr.validate();
           if(ptr.isValid()) {
             final RadComponent component=ptr.getComponent();
             LOG.assertTrue(component!=null);