We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a0e9d0f + f937313 commit 7c886acCopy full SHA for 7c886ac
1 file changed
core/java/android/widget/AdapterView.java
@@ -650,7 +650,8 @@ public void setEmptyView(View emptyView) {
650
mEmptyView = emptyView;
651
652
// If not explicitly specified this view is important for accessibility.
653
- if (emptyView.getImportantForAccessibility() == IMPORTANT_FOR_ACCESSIBILITY_AUTO) {
+ if (emptyView != null
654
+ && emptyView.getImportantForAccessibility() == IMPORTANT_FOR_ACCESSIBILITY_AUTO) {
655
emptyView.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_YES);
656
}
657
0 commit comments