Merge "Add null check for mIntent in ZenRulePreference to avoid potential crash risk"
This commit is contained in:
@@ -91,7 +91,9 @@ public class ZenRulePreference extends PrimarySwitchPreference {
|
||||
|
||||
@Override
|
||||
public void onClick() {
|
||||
mContext.startActivity(mIntent);
|
||||
if (mIntent != null) {
|
||||
mContext.startActivity(mIntent);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user