I have this code that checks for a value of an extra in an Intent on an Activity that is called from many places in my app:
getIntent().getExtras().getBoolea
It will not crash unless until you use it! You don't have to get it if it exists but if you try, for some reason, to use a an "extra" which doesn' exists your system will crash.
So, try o do something like:
final Bundle bundle = getIntent().getExtras();
boolean myBool=false;
if(bundle != null) {
myBool = bundle.getBoolean("isNewItem");
}
This way you make sure your app won't crash. (and make sure you have a valid Intent :))