# HG changeset patch # User ptbrunet # Date 1432086049 18000 # Node ID d0c43f9f5ed5b092f9b7cc91576ff393c26c6af0 # Parent ae0030995fd4b9157fe61af4f9814641c641c8ae 8078408: Java version applet hangs with Voice over turned on Summary: add null check to fix NPE Reviewed-by: prr, serb, alexsch Contributed-by: peter.brunet@oracle.com diff -r ae0030995fd4 -r d0c43f9f5ed5 jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibility.java --- a/jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibility.java Tue May 19 21:58:47 2015 +0300 +++ b/jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibility.java Tue May 19 20:40:49 2015 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -630,7 +630,7 @@ if (!allowIgnored) { final AccessibleRole role = context.getAccessibleRole(); - if (role != null && ignoredRoles.contains(roleKey(role))) { + if (role != null && ignoredRoles != null && ignoredRoles.contains(roleKey(role))) { // Get the child's unignored children. _addChildren(child, whichChildren, false, childrenAndRoles); } else {