Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Using Boolean as context variable throws fatal exception #35

Closed
tradel opened this issue Jan 10, 2014 · 1 comment
Closed

Using Boolean as context variable throws fatal exception #35

tradel opened this issue Jan 10, 2014 · 1 comment

Comments

@tradel
Copy link

tradel commented Jan 10, 2014

I'm using WizarDroid 1.1.1 via Maven repo. I have declared a boolean as a context variable:

    @ContextVariable
    private Boolean isUsingSSL;

When I click Next, the program dies with a fatal exception:

01-10 15:45:46.145    2122-2122/com.singularity.android E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.IllegalArgumentException: not a primitive field
            at java.lang.reflect.Field.getZField(Native Method)
            at java.lang.reflect.Field.getBoolean(Field.java:297)
            at org.codepond.wizardroid.persistence.ContextManagerImpl.persistStepContext(ContextManagerImpl.java:100)
            at org.codepond.wizardroid.Wizard.goNext(Wizard.java:153)
            at org.codepond.wizardroid.layouts.BasicWizardLayout.onClick(BasicWizardLayout.java:83)
            at android.view.View.performClick(View.java:4204)
            at android.view.View$PerformClick.run(View.java:17355)
            at android.os.Handler.handleCallback(Handler.java:725)
            at android.os.Handler.dispatchMessage(Handler.java:92)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:5041)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
            at dalvik.system.NativeStart.main(Native Method)

EDIT: same thing happens with an Integer. Seems like only Strings are working for me.

@tradel
Copy link
Author

tradel commented Jan 12, 2014

Sorry, I swear I had tried both boolean and Boolean. It works now with the primitive type.

@tradel tradel closed this as completed Jan 12, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant