Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing after image capture Kitkat 4.4.2 #60

Closed
orira opened this issue Jan 31, 2018 · 1 comment
Closed

Crashing after image capture Kitkat 4.4.2 #60

orira opened this issue Jan 31, 2018 · 1 comment

Comments

@orira
Copy link

orira commented Jan 31, 2018

I use the stepper to display images captured from either camera or gallery. Once an image is captured from camera or image selected from gallery.

When coming back to my apps activity with the stepper form, the following method

protected void enableStepLayout(int stepNumber, boolean smoothieEnabling)

crashes on the first line of the method as "stepLayouts" is null.

Only appears to be an issue on 4.4.2. Could a fix be applied for this when possible.

Thanks

Stacktrace below.

Caused by: java.lang.NullPointerException
at ernestoyaquello.com.verticalstepperform.VerticalStepperFormLayout.enableStepLayout(VerticalStepperFormLayout.java:750)
at ernestoyaquello.com.verticalstepperform.VerticalStepperFormLayout.openStep(VerticalStepperFormLayout.java:676)
at ernestoyaquello.com.verticalstepperform.VerticalStepperFormLayout.goToStep(VerticalStepperFormLayout.java:334)
at ernestoyaquello.com.verticalstepperform.VerticalStepperFormLayout.restoreFormState(VerticalStepperFormLayout.java:890)
at ernestoyaquello.com.verticalstepperform.VerticalStepperFormLayout.onRestoreInstanceState(VerticalStepperFormLayout.java:1006)
at android.view.View.dispatchRestoreInstanceState(View.java:13722)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2844)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2850)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2850)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2850)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2850)
at android.view.View.restoreHierarchyState(View.java:13700)
at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1952)
at android.app.Activity.onRestoreInstanceState(Activity.java:983)
at android.app.Activity.performRestoreInstanceState(Activity.java:955)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1144)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2373)

@ernestoyaquello
Copy link
Owner

First of all, sorry for the immense delay in my response; after a long period of abandonment it is only recently that I have found the time to work on this library again.

Regarding the issue, I am going to assume that this is no longer happening in the new version of the library, as most of its code has been refactored. Please check it out if you are still interested and don't hesitate to come to me again in case the problem persists after migrating to the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants