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

No null check on Date fields for ContextManagerImpl.persistStepContext() #47

Closed
markfreeman opened this issue Oct 28, 2014 · 0 comments
Closed

Comments

@markfreeman
Copy link

I found an issue while using Date fields. Because no null check is done, if a date field is null, the call to getTime() will throw a null pointer exception. See ContextManagerImpl line 124.

Here's the stack trace:
java.lang.NullPointerException
at org.codepond.wizardroid.persistence.ContextManagerImpl.persistStepContext(ContextManagerImpl.java:124)
at org.codepond.wizardroid.Wizard.goNext(Wizard.java:178)
at org.codepond.wizardroid.layouts.BasicWizardLayout.onClick(BasicWizardLayout.java:83)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18422)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)

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