title: java.lang.NullPointerException: at android.widget.Editor.updateFloatingToolbarVisibility
body: <pre><code>java.lang.NullPointerException: 
    at android.widget.Editor.updateFloatingToolbarVisibility(Editor.java:1541)
    at android.widget.Editor.onTouchEvent(Editor.java:1491)
    at android.widget.TextView.onTouchEvent(TextView.java:10025)
    at android.view.View.dispatchTouchEvent(View.java:10723)
    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.dispatchTouchEvent(ViewGroup.java:2550)
    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.dispatchTouchEvent(ViewGroup.java:2550)
    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.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 com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:521)
    at android.view.View.dispatchPointerEvent(View.java:10952)
    at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5117)
    at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4969)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4500)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4553)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4519)
    at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4652)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4527)
    at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4709)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4500)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4553)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4519)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4527)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4500)
    at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7007)
    at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6936)
    at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6897)
    at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7117)
    at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
    at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method:0)
    at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176)
    at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:7081)
    at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:7144)
    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(Native Method:0)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
  </code></pre>
  
  <p>This is not a duplicate post.</p>
  
  <p>A user has reported this issue but I don't know how to reproduce it and fix it. It happens in Android N Samsung Device.</p>
  
  <p>My guess is it happens in a EditText.</p>
  
  <p>Any suggestions.</p>