I have faced this issue in android Samsung version 7 galaxy s6 edge. Attempt to invoke virtual method ‘boolean

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method ‘boolean android.widget.Editor$SelectionModifierCursorController.isDragAcceleratorActive()’ on a null object reference at android.widget.Editor.updateFloatingToolbarVisjasibility: android(1541) .widget.Editor.onTouchEvent(Editor.java:1491) at android.widget.TextView.onTouchEvent(TextView.java:10012) at android.view.View.dispatchTouchEvent(View.java:10717) at android.view.ViewGroup. dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchGroupEvent :2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.widget.ScrollView.dispatchTouchEvent android(ScrollView.java:738) .view.ViewGroup.dispatchTransformedTouchEv ent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent.ja(ViewGroup) :2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java at android:2865) .view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGro dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchGroupEvent :2550) at android.view.ViewGroup.dispatchTransformedTouchE vent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent.vaViewGroup :2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java at android:2865) .view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGro dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865) at android.view.ViewGroup.dispatchGroupEvent :2550) at android.view.ViewGroup.dispatchTransformedTouch Event(ViewGroup.java:2865) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2550) at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:559) at com.android.internal.policy .PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1870) at android.app.Activity.dispatchTouchEvent(Activity.java:3236) at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.policy.roid) at comternal. DecorView.dispatchTouchEvent(DecorView.java:521) at android.view.View.dispatchPointerEvent(View.java:10946) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5110) at android.view.ViewRootImplIn$View .onProcess(ViewRootImpl.java:4962) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4493) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.Rojava:4546) at android.view.view. InputStage.forward(ViewRootImpl.java:4512) at android.view.ViewRootImpl$A syncInputStage.forward(ViewRootImpl.java:4645) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4520) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.Rojava:4702) at android.view.viewpl. $InputStage.deliver(ViewRootImpl.java:4493) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4546) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4512) at android. ViewRootImpl$InputStage.apply(ViewRootImpl.java:4520) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4493) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7000) at android.view. .doProcessInputEvents(ViewRootImpl.java:6929) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6890) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.Event.java.java) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.Event.java.java) at android:71. InputEventReceiver.java:185) at android.view.InputEventReceiver.nativeConsumeBatc hedInputEvents(InputEventReceiver.java) at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176) at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:7074) at AndroidRumeBatchable.java. :7137) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:927) at android.view.Choreographer.doCallbacks(Choreographer.java:702) at android.view.Choreographer.doFrame(Choreographer.java:632) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:913) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android. os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6682) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os .ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)

3