8175915: NullPointerException from JComboBox and JList when Accessibility enabled
authormcherkas
Mon, 15 May 2017 15:32:14 +0300
changeset 45346 6a9a31dea229
parent 45345 f5223be944fa
child 45347 f85c1262be90
8175915: NullPointerException from JComboBox and JList when Accessibility enabled Reviewed-by: serb, prr
jdk/src/jdk.accessibility/windows/classes/com/sun/java/accessibility/internal/AccessBridge.java
--- a/jdk/src/jdk.accessibility/windows/classes/com/sun/java/accessibility/internal/AccessBridge.java	Fri May 12 15:01:22 2017 +0300
+++ b/jdk/src/jdk.accessibility/windows/classes/com/sun/java/accessibility/internal/AccessBridge.java	Mon May 15 15:32:14 2017 +0300
@@ -702,7 +702,7 @@
             }
 
             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:
                 =======