[Android-development] Crash at startup in git 5.4 snapshot build
Harri Pasanen
harri at mpaja.com
Thu Oct 30 17:16:25 CET 2014
Hi,
Looks like commit f81e76da1e8520866616c2fe9e46547b9201f202 brought in a
bug in QtActivityDelegate.java
It adds two ifs:
+ if (extras.containsKey("extraenvvars")) {
...
and
+ if (extras.containsKey("extraappparams")) {
...
but is not prepared for the fact that extras can be null, which gives:
00:02 W/System.err: java.lang.NullPointerException
00:02 W/System.err: at org.qtproject.qt5.android.QtActivityDelegate.startApplication(QtActivityDelegate.java:664)
The lines in question should probably start with:
if (extras != null && ...
It did not crash for me when running through Qt Creator, but running without it dies.
Hope this helps,
Harri
More information about the Android-development
mailing list