fixed npe

This commit is contained in:
bancika
2011-01-09 23:38:37 +00:00
parent 5f860348df
commit 481c28d835
@@ -573,7 +573,7 @@ public class Presenter implements IPlugInPort {
selectedComponents.clear();
for (IDIYComponent<?> component : currentProject.getComponents()) {
Area area = componentAreaMap.get(component);
if ((area != null) && area.intersects(selectionRect)) {
if ((area != null) && (selectionRect != null) && area.intersects(selectionRect)) {
selectedComponents.add(component);
}
}