[Bug #1285] Avoided NPE when dropping a treerow in the same component

FEA: ItEr75S04BugFixing
This commit is contained in:
Lorenzo Tilve Álvaro 2011-12-07 17:02:54 +01:00
parent 6e83372b7c
commit fcd98e8ea6

View file

@ -174,7 +174,8 @@ public abstract class TreeController<T extends ITreeNode<T>> extends
}
public void move(Component dropedIn, Component dragged) {
if (isPredicateApplied()) {
if ((isPredicateApplied())
|| (dropedIn.getUuid().equals(dragged.getUuid()))) {
return;
}