[Android-development] Crash at startup in git 5.4 snapshot build

Christian Strømme christian.stromme at theqtcompany.com
Thu Oct 30 17:23:13 CET 2014



On 30/10/14 17:16 , Harri Pasanen wrote:
> 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
>
>
>
>
>
>
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/android-development
>


Hi, the fix for this is already merged into 5.4 
https://codereview.qt-project.org/#/c/98415/1


-- 
Christian



More information about the Android-development mailing list