We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d7eca8 + 9967347 commit af9800cCopy full SHA for af9800c
app/display/model/src/main/java/org/csstudio/display/builder/model/properties/IntegerWidgetProperty.java
@@ -63,8 +63,16 @@ public IntegerWidgetProperty(
63
@Override
64
protected Integer parseExpandedSpecification(final String text) throws Exception
65
{
66
+
67
+ if(text.isBlank())
68
+ { // If the value read from the .bob is empty then it should return the default
69
+ // note we should hard-fail here; there shouldn't be a null value by this point,
70
+ // and Integer.valueOf(null) throws an NPE instead of NumberFormatException.
71
+ return default_value;
72
+ }
73
74
try
- { // Should be integer..
75
+ { // Otherwise try to parse to an integer
76
return Integer.valueOf(text);
77
}
78
catch (final NumberFormatException ex)
0 commit comments