Adding null-check before parsing an intent
Bug: 18962665 Change-Id: Iae02435f019fa205f3ee3ae721a29f26b3b56dd2
This commit is contained in:
@@ -104,7 +104,9 @@ public class UninstallShortcutReceiver extends BroadcastReceiver {
|
||||
try {
|
||||
while (c.moveToNext()) {
|
||||
try {
|
||||
if (intent.filterEquals(Intent.parseUri(c.getString(intentIndex), 0))) {
|
||||
String intentStr = c.getString(intentIndex);
|
||||
if (intentStr != null
|
||||
&& intent.filterEquals(Intent.parseUri(intentStr, 0))) {
|
||||
final long id = c.getLong(idIndex);
|
||||
final Uri uri = LauncherSettings.Favorites.getContentUri(id, false);
|
||||
cr.delete(uri, null, null);
|
||||
|
||||
Reference in New Issue
Block a user