diff --git a/src/solaris/classes/sun/awt/X11/XMenuItemPeer.java b/src/solaris/classes/sun/awt/X11/XMenuItemPeer.java index 8cd8a725af4c51704f4104643f6bf57f52f7883b..496524c10b3f2073e66b6338e2fe369a889376b9 100644 --- a/src/solaris/classes/sun/awt/X11/XMenuItemPeer.java +++ b/src/solaris/classes/sun/awt/X11/XMenuItemPeer.java @@ -202,7 +202,8 @@ public class XMenuItemPeer implements MenuItemPeer { if (target == null) { return ""; } - return AWTAccessor.getMenuItemAccessor().getLabel(target); + String label = AWTAccessor.getMenuItemAccessor().getLabel(target); + return (label == null) ? "" : label; } boolean isTargetEnabled() {