Skip to content
Snippets Groups Projects
Commit 19513691 authored by Gwenaelle ABEILLE's avatar Gwenaelle ABEILLE
Browse files

fix classcastexception

parent 1c748339
Branches
Tags 1.2
No related merge requests found
......@@ -277,8 +277,8 @@ public class SnapshotDetailRenderer extends DefaultTableCellRenderer {
if (value.getScalarValue() == null) {
return Messages.getMessage("SNAPSHOT_DETAIL_NO_DATA");
} else if (value.getDataType() == TangoConst.Tango_DEV_STATE) {
Integer valS = (Integer) value.getScalarValue();
return StateUtilities.getNameForState((short) valS.intValue());
double val = (Double) value.getScalarValue();
return StateUtilities.getNameForState((short) val);
} else if (value.getDataType() == TangoConst.Tango_DEV_BOOLEAN) {
return value.getScalarValue().toString();
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment