GameSpace: Fix NPE in PanelView
Log:
11-30 22:39:23.443 E/OpenGLRenderer(20239): Unable to match the desired swap behavior.
11-30 22:39:23.443 D/AndroidRuntime(20239): Shutting down VM
11-30 22:39:23.444 E/AndroidRuntime(20239): FATAL EXCEPTION: main
11-30 22:39:23.444 E/AndroidRuntime(20239): Process: io.chaldeaprjkt.gamespace, PID: 20239
11-30 22:39:23.444 E/AndroidRuntime(20239): java.lang.IllegalArgumentException: Cannot coerce value to an empty range: maximum -22 is less than minimum 54.
11-30 22:39:23.444 E/AndroidRuntime(20239): at kotlin.ranges.RangesKt___RangesKt.coerceIn(_Ranges.kt:1413)
11-30 22:39:23.444 E/AndroidRuntime(20239): at kotlin.ranges.RangesKt.coerceIn(Unknown Source:0)
11-30 22:39:23.444 E/AndroidRuntime(20239): at io.chaldeaprjkt.gamespace.widget.PanelView$applyRelativeLocation$$inlined$doOnLayout$1.onLayoutChange(View.kt:54)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.View.layout(View.java:24442)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.ViewGroup.layout(ViewGroup.java:6439)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.widget.LinearLayout.onLayout(LinearLayout.java:1638)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.View.layout(View.java:24421)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.ViewGroup.layout(ViewGroup.java:6439)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:4258)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3583)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2465)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9309)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1339)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1348)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.Choreographer.doCallbacks(Choreographer.java:952)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.Choreographer.doFrame(Choreographer.java:882)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1322)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.os.Handler.handleCallback(Handler.java:958)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.os.Handler.dispatchMessage(Handler.java:99)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.os.Looper.loopOnce(Looper.java:205)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.os.Looper.loop(Looper.java:294)
11-30 22:39:23.444 E/AndroidRuntime(20239): at android.app.ActivityThread.main(ActivityThread.java:8172)
11-30 22:39:23.444 E/AndroidRuntime(20239): at java.lang.reflect.Method.invoke(Native Method)
11-30 22:39:23.444 E/AndroidRuntime(20239): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
11-30 22:39:23.444 E/AndroidRuntime(20239): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
11-30 22:39:23.449 I/DropBoxManagerService( 1720): add tag=system_app_crash isTagEnabled=true flags=0x2
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Loading
Please register or sign in to comment