mirror of
https://github.com/badvision/jace.git
synced 2024-11-27 19:49:32 +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;
|
||||
} else {
|
||||
Iterator<? extends T> i = getSelections().keySet().iterator();
|
||||
return i.next();
|
||||
if (i.hasNext()) {
|
||||
return i.next();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user