Closed GoogleCodeExporter closed 9 years ago
What is your version of ACRA ? From the stack trace I would guess it is
2.1.0-test but I can't see how line 178 of CrashReportingApplication could
throw a NPE.
http://code.google.com/p/acra/source/browse/tags/REL-2_1_0-test/CrashReport/src/
org/acra/CrashReportingApplication.java#178
Anyway, you would better use ACRA v3, the 2.* branch will not be maintained
anymore.
Original comment by kevin.gaudin
on 22 Nov 2010 at 11:02
Just noticed you're using Instrumentation to test your Application. I don't
know much about this, but it looks like in this mode the real Application is
not run in its usual context so I may understand that
Application.getPackageName() could return null if
http://developer.android.com/intl/fr/guide/topics/manifest/instrumentation-eleme
nt.html#trgt is not set ?
Original comment by kevin.gaudin
on 22 Nov 2010 at 11:16
Ok, I can reproduce the NPE with a simple test case with ACRA v3 as well.
Working on it.
Original comment by kevin.gaudin
on 22 Nov 2010 at 11:54
Finally, that was a different NPE... the one I throw on purpose to test
ACRA.... Now unit-test runs ok without any NPE on the ACRA side with ACRAv3.
Original comment by kevin.gaudin
on 23 Nov 2010 at 12:06
This issue was reported on an outdated version. It is even more outdated now.
Original comment by kevin.gaudin
on 7 Sep 2012 at 9:49
Original issue reported on code.google.com by
bost...@gmail.com
on 22 Nov 2010 at 5:52