jamesnguyenhub / mkloader

Beautiful and smooth custom loading views
Apache License 2.0
1.38k stars 166 forks source link

Getting Null pointer exception while running in Android 9 update #15

Open sunit09 opened 5 years ago

sunit09 commented 5 years ago

The loader was running smoothly, unless I update the device with Android Pie update. Attaching log response for your reference.

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.PointF com.tuyenmonkey.mkloader.model.Line.getPoint1()' on a null object reference at com.tuyenmonkey.mkloader.type.Pulse.draw(Pulse.java:67) at com.tuyenmonkey.mkloader.MKLoader.onDraw(MKLoader.java:61) at android.view.View.draw(View.java:20211) at android.view.View.updateDisplayListIfDirty(View.java:19086) at android.view.View.draw(View.java:19939) at android.view.ViewGroup.drawChild(ViewGroup.java:4333) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136) at android.view.View.updateDisplayListIfDirty(View.java:19077) at android.view.View.draw(View.java:19939) at android.view.ViewGroup.drawChild(ViewGroup.java:4333) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112) at android.view.View.updateDisplayListIfDirty(View.java:19077) at android.view.View.draw(View.java:19939) at android.view.ViewGroup.drawChild(ViewGroup.java:4333) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112) at android.view.View.draw(View.java:20214) at android.support.v4.view.ViewPager.draw(ViewPager.java:2420) at android.view.View.updateDisplayListIfDirty(View.java:19086) at android.view.View.draw(View.java:19939) at android.view.ViewGroup.drawChild(ViewGroup.java:4333) at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1254) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112) at android.view.View.draw(View.java:20214) at android.view.View.updateDisplayListIfDirty(View.java:19086) at android.view.View.draw(View.java:19939) at android.view.ViewGroup.drawChild(ViewGroup.java:4333) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112) at android.view.View.updateDisplayListIfDirty(View.java:19077) at android.view.View.draw(View.java:19939) at android.view.ViewGroup.drawChild(ViewGroup.java:4333) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112) at android.view.View.updateDisplayListIfDirty(View.java:19077) at android.view.View.draw(View.java:19939) at android.view.ViewGroup.drawChild(ViewGroup.java:4333) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112) at android.view.View.updateDisplayListIfDirty(View.java:19077) at android.view.View.draw(View.java:19939) at android.view.ViewGroup.drawChild(ViewGroup.java:4333) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112) at android.view.View.updateDisplayListIfDirty(View.java:19077) at android.view.View.draw(View.java:19939) at android.view.ViewGroup.drawChild(ViewGroup.java:4333) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112) at android.view.View.draw(View.java:20214) at com.android.internal.policy.DecorView.draw(DecorView.java:780) at android.view.View.updateDisplayListIfDirty(View.java:19086) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:686) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:692) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:801) at android.view.ViewRootImpl.draw(ViewRootImpl.java:3327) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3124) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2493) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1468) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7208) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1004) at android.view.Choreographer.doCallbacks(Choreographer.java:816) at android.view.Choreographer.doFrame(Choreographer.java:751) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:990) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6692) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)