Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Attempt to read from null array #7

Open
Supercaly opened this issue Jan 1, 2018 · 4 comments
Open

Attempt to read from null array #7

Supercaly opened this issue Jan 1, 2018 · 4 comments
Assignees

Comments

@Supercaly
Copy link

Supercaly commented Jan 1, 2018

Every time i rotate the screen this error happen

Caused by: java.lang.NullPointerException: Attempt to read from null array at com.shuhart.stepview.StepView.getAnimator(StepView.java:205) at com.shuhart.stepview.StepView.animate(StepView.java:170) at com.shuhart.stepview.StepView.go(StepView.java:152) at com.supercaly.petify.Activities.AggiungiActivity.setStep(AggiungiActivity.java:96) at com.supercaly.petify.Activities.AggiungiActivity.onCreate(AggiungiActivity.java:56) at android.app.Activity.performCreate(Activity.java:6237) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)

@shuhart
Copy link
Owner

shuhart commented Jan 14, 2018

Can't reproduce. Could you post the code?

@shuhart
Copy link
Owner

shuhart commented Feb 4, 2018

Reopen, if it's still relevant.

@shuhart shuhart closed this as completed Feb 4, 2018
@vkrissz
Copy link

vkrissz commented Apr 18, 2019

Same problem here.
It is caused when the view is added and measured without steps, than in first frames the steps are set. After this the go(x, true) method throws this error as startLinesX and endLinesX arrays are null.
When I add it in the viewCreated method it works correctly.

@shuhart shuhart reopened this Apr 22, 2019
@shuhart shuhart self-assigned this Apr 22, 2019
@shuhart shuhart added the bug label Apr 22, 2019
@shuhart
Copy link
Owner

shuhart commented May 13, 2019

Still can't get it. Are you sure you have the latest version?

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

No branches or pull requests

3 participants