dimanche 3 mai 2015

getIntent().getExtras() is some times null in API level 21?

As per some google crash report of my app i am seeing NullPointerException, "Attempt to invoke virtual method 'int android.os.Bundle.getInt(java.lang.String)' on a null object reference" but i have made sure and cross checked that intent to that activity always some Extras is set. Can some one suggest me what might be wrong, i am suspecting not overriding onNewIntent, is causing problem but my activity is launched with "noHistory =true" flag so onNewIntent is never called?

Aucun commentaire:

Enregistrer un commentaire