Skip to content

Commit c441d28

Browse files
authored
Fix tooltip for graphics widgets #2878
1 parent 724c7ba commit c441d28

File tree

1 file changed

+4
-1
lines changed
  • app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets

1 file changed

+4
-1
lines changed

app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets/TooltipSupport.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ public static void attach(final Node node, final WidgetProperty<String> tooltip_
9797
String spec = ((MacroizedWidgetProperty<?>)tooltip_property).getSpecification();
9898

9999
final Widget widget = tooltip_property.getWidget();
100-
Object vtype = widget.getPropertyValue(runtimePropPVValue);
100+
Object vtype = null;
101+
if (widget.checkProperty(runtimePropPVValue.getName()).isPresent()) {
102+
vtype = widget.getPropertyValue(runtimePropPVValue);
103+
}
101104
Display display = Display.displayOf(vtype);
102105

103106
// If 'vtype' supports it (i.e., it is an instance of "DisplayProvider"),

0 commit comments

Comments
 (0)