fixed parse exception issue in leaderboard settings panel

This commit is contained in:
Axel Uhl committed 2012-01-17 22:05:53 +01:00
1 parent bba34e6dbd
commit 691e4c87ef
1 file changed
+5 -1
@@ -58,7 +58,11 @@ public abstract class AbstractChartSettingsComponent<SettingsType extends ChartS
}
public ChartSettings getAbstractResult() {
return new ChartSettings(getStepsBox().getValue().intValue());
Long value = getStepsBox().getValue();
if (value == null) {
value = -1l;
}
return new ChartSettings(value.intValue());
}
}