Questions tagged «meizu»

9
魅族设备上的NullPointerException在Editor.updateCursorPositionMz中
最近,仅在魅族设备(M5c,M5s,M5 Note)上,我的Android应用程序发生了崩溃。Android版本:6.0。 这是完整的堆栈跟踪: Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.text.Layout.getLineForOffset(int)' on a null object reference at android.widget.Editor.updateCursorPositionMz(Editor.java:6964) at android.widget.Editor.updateCursorsPositions(Editor.java:1760) at android.widget.TextView.getUpdatedHighlightPath(TextView.java:5689) at android.widget.TextView.onDraw(TextView.java:5882) at android.view.View.draw(View.java:16539) at android.view.View.updateDisplayListIfDirty(View.java:15492) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3719) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3699) at android.view.View.updateDisplayListIfDirty(View.java:15443) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3719) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3699) at android.view.View.updateDisplayListIfDirty(View.java:15443) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3719) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3699) at android.view.View.updateDisplayListIfDirty(View.java:15443) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3719) …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.