I updated in my application the sdk from version 15.0.0 to the newest version 15.7.0 and I notice that I’m getting crash when I open my application by deep link and then by pressing back button.
The crash:
![](https://uploads-eu-west-1.insided.com/intercom-en/attachment/f2cb33f2-95f3-433c-9ac5-0482d02a3839.png)
I notice that the handleExtras method was added in version 15.1.3 and there is bug:
![](https://uploads-eu-west-1.insided.com/intercom-en/attachment/86535cbc-661d-48cd-abbd-b155592872c1.png)
activity.getIntent() can return null and than it throw NPE
Please add null checking to avoid crashing users applications:
Intent intent = activity.getIntent();
if (intent == null){
return;
}
String instanceId = intent.getStringExtra(....
Best answer by Jacob Cox
View original