仅在使用Android 6.0.1的三星手机上才会发生此错误。或7.0:
Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'void android.widget.Editor$SelectionModifierCursorController.hide()' on a null object reference
android.widget.Editor.performLongClick (Editor.java:1139)
android.widget.TextView.performLongClick (TextView.java:10945)
android.view.View$CheckForLongPress.run (View.java:22568)
android.os.Handler.handleCallback (Handler.java:739)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:148)
android.app.ActivityThread.main (ActivityThread.java:7325)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
寻找一种预防方法。=)
看来这是一个已知问题,但是优先级较低:
问题228485:空对象引用上的SelectionModifierCursorController.hide()'