Skip to content

Commit 7226058

Browse files
committed
Fix ClassCastException. Fixes #229.
1 parent 64fde93 commit 7226058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/creation/CutoffPropertiesPanel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,9 @@ public NESFilter getNESFilter() {
494494

495495
public Optional<Integer> getMinimumExperiments() {
496496
if(minExperimentsText.isVisible() && shouldFilterMinCheckbox.isSelected()) {
497-
Integer value = (Integer)minExperimentsText.getValue();
497+
Number value = (Number)minExperimentsText.getValue(); // sometimes returns Long, sometimes Integer
498498
if(value != null && value.intValue() > 0) {
499-
return Optional.of(value);
499+
return Optional.of(value.intValue());
500500
}
501501
}
502502
return Optional.empty();

0 commit comments

Comments
 (0)