changeset 17185:828d3f3728a2

8175915: NullPointerException from JComboBox and JList when Accessibility enabled Reviewed-by: serb, prr
author mcherkas
date Mon, 15 May 2017 15:32:14 +0300
parents 4a610c6d0b9c
children 85d12636d9f6
files src/jdk.accessibility/windows/classes/com/sun/java/accessibility/internal/AccessBridge.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.accessibility/windows/classes/com/sun/java/accessibility/internal/AccessBridge.java	Fri May 12 15:01:22 2017 +0300
+++ b/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:
                 =======