StepView icon indicating copy to clipboard operation
StepView copied to clipboard

Attempt to read from null array

Open Supercaly opened this issue 8 years ago • 4 comments

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)

Supercaly avatar Jan 01 '18 16:01 Supercaly

Can't reproduce. Could you post the code?

shuhart avatar Jan 14 '18 08:01 shuhart

Reopen, if it's still relevant.

shuhart avatar Feb 04 '18 19:02 shuhart

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.

vkrissz avatar Apr 18 '19 17:04 vkrissz

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

shuhart avatar May 13 '19 19:05 shuhart