am da68124d: Merge "Defend against NPE." into klp-dev
* commit 'da68124da23acadc192ba996d0e64f6d362a9a26': Defend against NPE.
This commit is contained in:
@@ -135,9 +135,9 @@ public class SignalClusterView
|
||||
public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
|
||||
// Standard group layout onPopulateAccessibilityEvent() implementations
|
||||
// ignore content description, so populate manually
|
||||
if (mWifiVisible && mWifiGroup.getContentDescription() != null)
|
||||
if (mWifiVisible && mWifiGroup != null && mWifiGroup.getContentDescription() != null)
|
||||
event.getText().add(mWifiGroup.getContentDescription());
|
||||
if (mMobileVisible && mMobileGroup.getContentDescription() != null)
|
||||
if (mMobileVisible && mMobileGroup != null && mMobileGroup.getContentDescription() != null)
|
||||
event.getText().add(mMobileGroup.getContentDescription());
|
||||
return super.dispatchPopulateAccessibilityEvent(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user