Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entering symbol view causes NPE when "Switch Access" accessibility mode is enabled #257

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Enable "Switch Access" under accessibility settings (see the attached 
screenshot).
2. Tap a text area to launch Mozc
3. Tap symbol icon to enter symbol view (see the attached screenrecord).

What is the expected output?
Symbol view is displayed without any error.

What do you see instead?
Mozc crashes due to NPE.

Please use labels and text to provide additional information.
Reproduced with in the following configuration.
- Android 5.0 LPX21P on Nexus 7 2013 (WiFi)
- Mozc 2.16.1925.103-arm

Here is the call stack.
E/AndroidRuntime( 7701): FATAL EXCEPTION: main
E/AndroidRuntime( 7701): Process: org.mozc.android.inputmethod.japanese, PID: 
7701
E/AndroidRuntime( 7701): java.lang.NullPointerException: Attempt to invoke 
interface method 'boolean 
android.view.ViewParent.requestSendAccessibilityEvent(android.view.View, 
android.view.accessibility.AccessibilityEvent)' on a null object reference
E/AndroidRuntime( 7701):        at 
android.view.View.sendAccessibilityEventUncheckedInternal(View.java:5294)
E/AndroidRuntime( 7701):        at 
android.view.View.sendAccessibilityEventUnchecked(View.java:5275)
E/AndroidRuntime( 7701):        at 
android.view.View$SendViewStateChangedAccessibilityEvent.run(View.java:20892)
E/AndroidRuntime( 7701):        at 
android.os.Handler.handleCallback(Handler.java:739)
E/AndroidRuntime( 7701):        at 
android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime( 7701):        at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 7701):        at 
android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime( 7701):        at java.lang.reflect.Method.invoke(Native 
Method)
E/AndroidRuntime( 7701):        at 
java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 7701):        at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime( 7701):        at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

This issue was originally reported as Issue 253.

Original issue reported on code.google.com by yukawa@google.com on 29 Nov 2014 at 11:01

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant