diff --git a/src/tap/parameters/TAPExecutionDurationController.java b/src/tap/parameters/TAPExecutionDurationController.java index 6c158d0dac8571bcee5e65d9bc8212e87c0691b4..dde16d4173b2aa030fc4ba5199870fccadbb02e5 100644 --- a/src/tap/parameters/TAPExecutionDurationController.java +++ b/src/tap/parameters/TAPExecutionDurationController.java @@ -114,7 +114,7 @@ public class TAPExecutionDurationController implements InputParamController { if (value instanceof Long) duration = (Long)value; else if (value instanceof Integer) - duration = (long)(Integer)value; + duration = (long)((Integer)value).intValue(); else if (value instanceof String){ try{ duration = Long.parseLong((String)value);