android - Application crash on nexus while working fine in other phones -


i working on application shows list of images specific folder gridview. working fine in devices getting crashed while trying test in nexus 7" tablet.

following crash log get.

05-05 10:54:02.478  4246  4246 w bundle  : key android.intent.extra.text expected arraylist<charsequence> value java.lang.string.  default value <null> returned. 05-05 10:54:02.488  4246  4246 w bundle  : attempt cast generated internal exception: 05-05 10:54:02.488  4246  4246 w bundle  : java.lang.classcastexception: java.lang.string cannot cast java.util.arraylist 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.os.bundle.getcharsequencearraylist(bundle.java:1334) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.content.intent.getcharsequencearraylistextra(intent.java:4414) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.content.intent.migrateextrastreamtoclipdata(intent.java:6872) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.content.intent.migrateextrastreamtoclipdata(intent.java:6840) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.app.instrumentation.execstartactivity(instrumentation.java:1411) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.app.activity.startactivityforresult(activity.java:3370) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.app.activity.startactivityforresult(activity.java:3331) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.app.activity.startactivity(activity.java:3566) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.app.activity.startactivity(activity.java:3534) 05-05 10:54:02.488  4246  4246 w bundle  :  @ com.mxtech.logcollector.activitycollector.collectandsend(activitycollector.java:354) 05-05 10:54:02.488  4246  4246 w bundle  :  @ com.mxtech.logcollector.activitycollector.onclick(activitycollector.java:364) 05-05 10:54:02.488  4246  4246 w bundle  :  @ com.android.internal.app.alertcontroller$buttonhandler.handlemessage(alertcontroller.java:166) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.os.handler.dispatchmessage(handler.java:99) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.os.looper.loop(looper.java:137) 05-05 10:54:02.488  4246  4246 w bundle  :  @ android.app.activitythread.main(activitythread.java:5041) 05-05 10:54:02.488  4246  4246 w bundle  :  @ java.lang.reflect.method.invokenative(native method) 05-05 10:54:02.488  4246  4246 w bundle  :  @ java.lang.reflect.method.invoke(method.java:511) 05-05 10:54:02.488  4246  4246 w bundle  :  @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:793) 05-05 10:54:02.488  4246  4246 w bundle  :  @ com.android.internal.os.zygoteinit.main(zygoteinit.java:560) 05-05 10:54:02.488  4246  4246 w bundle  :  @ dalvik.system.nativestart.main(native method) 

looks autoboxing problem when cast null made. try use default value!


Comments