From c37a446a5dc7ea1a6a154c347b6d514d1f2f997b Mon Sep 17 00:00:00 2001 From: mcherkas Date: Wed, 17 May 2017 13:37:52 +0300 Subject: [PATCH] 8175915: NullPointerException from JComboBox and JList when Accessibility enabled Reviewed-by: serb, prr --- .../classes/com/sun/java/accessibility/AccessBridge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/classes/com/sun/java/accessibility/AccessBridge.java b/src/windows/classes/com/sun/java/accessibility/AccessBridge.java index 7d66a7d19..f2802f6da 100644 --- a/src/windows/classes/com/sun/java/accessibility/AccessBridge.java +++ b/src/windows/classes/com/sun/java/accessibility/AccessBridge.java @@ -807,7 +807,7 @@ final public class AccessBridge extends AccessBridgeLoader { } if (false == bExtendedSearch) { - debugString ("bk -- getVirtualAccessibleNameFromContext will not use the extended name search algorithm. role = " + role.toDisplayString (Locale.US) ); + debugString ("bk -- getVirtualAccessibleNameFromContext will not use the extended name search algorithm. role = " + ( role != null ? role.toDisplayString(Locale.US) : "null") ); /* Step 3: ======= -- GitLab