Fix launcher crash when trying to open work profile promise icon.

Bug: 138609751
Change-Id: Ifb1c4628ce6307a19a2bb696e4771d5cd5810a90
This commit is contained in:
Jon Miranda
2019-08-01 15:44:55 -07:00
parent cf92f3edb0
commit 0121d466ec
4 changed files with 51 additions and 5 deletions

View File

@@ -170,7 +170,7 @@ public abstract class BaseDraggingActivity extends BaseActivity
getUserEventDispatcher().logAppLaunch(v, intent);
getStatsLogManager().logAppLaunch(v, intent);
return true;
} catch (ActivityNotFoundException|SecurityException e) {
} catch (NullPointerException|ActivityNotFoundException|SecurityException e) {
Toast.makeText(this, R.string.activity_not_found, Toast.LENGTH_SHORT).show();
Log.e(TAG, "Unable to launch. tag=" + item + " intent=" + intent, e);
}