mirror of
https://github.com/badvision/jace.git
synced 2024-06-05 21:29:31 +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…
Reference in New Issue
Block a user