You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error occurs when a view docked under the ReadableBar is set with visibility = view.VISIBLE at runtime from code, therefore the height of this view increases by raising the ReadableBar and then creating an animation event for the ReadableBar. This animation event crashes the app. I'm using the ReadableBar inside a constraint layout with android: animateLayoutChanges = "true"
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.animation.Animation.setStartTime(long)' on a null object reference at android.view.View.startAnimation(View.java:23707) at com.iammert.library.readablebottombar.BottomBarItemView.select(BottomBarItemView.kt:65) at com.iammert.library.readablebottombar.ReadableBottomBar$drawBottomBarItems$1$listener$1.onGlobalLayout(ReadableBottomBar.kt:162) at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:945) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2542) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1635) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7795) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1172) at android.view.Choreographer.doCallbacks(Choreographer.java:984) at android.view.Choreographer.doFrame(Choreographer.java:809) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1158) 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:6863) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
The text was updated successfully, but these errors were encountered:
The error occurs when a view docked under the ReadableBar is set with visibility = view.VISIBLE at runtime from code, therefore the height of this view increases by raising the ReadableBar and then creating an animation event for the ReadableBar. This animation event crashes the app. I'm using the ReadableBar inside a constraint layout with android: animateLayoutChanges = "true"
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.animation.Animation.setStartTime(long)' on a null object reference at android.view.View.startAnimation(View.java:23707) at com.iammert.library.readablebottombar.BottomBarItemView.select(BottomBarItemView.kt:65) at com.iammert.library.readablebottombar.ReadableBottomBar$drawBottomBarItems$1$listener$1.onGlobalLayout(ReadableBottomBar.kt:162) at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:945) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2542) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1635) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7795) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1172) at android.view.Choreographer.doCallbacks(Choreographer.java:984) at android.view.Choreographer.doFrame(Choreographer.java:809) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1158) 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:6863) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
The text was updated successfully, but these errors were encountered: