mirror of
https://github.com/badvision/jace.git
synced 2025-02-25 15:29:03 +00:00
Fixed issue cased when there are no valid selections, default should be null then.
This commit is contained in:
parent
609ad08bfd
commit
5542bb3425
@ -38,7 +38,11 @@ public abstract class DynamicSelection<T> implements ISelection<T> {
|
|||||||
return currentValue;
|
return currentValue;
|
||||||
} else {
|
} else {
|
||||||
Iterator<? extends T> i = getSelections().keySet().iterator();
|
Iterator<? extends T> i = getSelections().keySet().iterator();
|
||||||
return i.next();
|
if (i.hasNext()) {
|
||||||
|
return i.next();
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user