ItemInfo null check inside BaseDraggingActivity

Bug: 153611516
Change-Id: I0b9fed9134a103e3f7162756fd91ea4ad89e09bb
This commit is contained in:
Hyunyoung Song 2020-04-20 16:29:04 -07:00
parent 86932724e7
commit 103e8e36aa
1 changed files with 3 additions and 1 deletions

View File

@ -184,7 +184,9 @@ public abstract class BaseDraggingActivity extends BaseActivity
sourceContainer);
}
getUserEventDispatcher().logAppLaunch(v, intent, user);
getStatsLogManager().log(APP_LAUNCH_TAP, item.buildProto(null, null));
getStatsLogManager().log(APP_LAUNCH_TAP, item == null ? null
: item.buildProto(null, null));
return true;
} catch (NullPointerException|ActivityNotFoundException|SecurityException e) {
Toast.makeText(this, R.string.activity_not_found, Toast.LENGTH_SHORT).show();