java.lang.NullPointerException: at android.view.inputmethod.InputMethodManager.getInstance(InputMethodManager.java)

RESOLVED WORKSFORME

Status

()

Firefox for Android
Keyboards and IME
--
critical
RESOLVED WORKSFORME
5 years ago
5 years ago

People

(Reporter: Scoobidiver (away), Unassigned)

Tracking

({crash})

Trunk
ARM
Android
crash
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [native-crash], crash signature)

(Reporter)

Description

5 years ago
There's one crash in 17.0a1/20120816: bp-30801f75-c2c6-4c24-867a-978952120816.

java.lang.NullPointerException
	at android.view.inputmethod.InputMethodManager.getInstance(InputMethodManager.java:493)
	at android.view.inputmethod.InputMethodManager.getInstance(InputMethodManager.java:477)
	at android.app.ContextImpl.getSystemService(ContextImpl.java:942)
	at android.view.ContextThemeWrapper.getSystemService(ContextThemeWrapper.java:73)
	at android.app.Activity.getSystemService(Activity.java:3546)
	at org.mozilla.gecko.InputMethods.getInputMethodManager(InputMethods.java:53)
	at org.mozilla.gecko.GeckoInputConnection.getInputMethodManager(GeckoInputConnection.java:416)
	at org.mozilla.gecko.GeckoInputConnection.access$100(GeckoInputConnection.java:46)
	at org.mozilla.gecko.GeckoInputConnection$1.run(GeckoInputConnection.java:1014)
	at android.os.Handler.handleCallback(Handler.java:587)
	at android.os.Handler.dispatchMessage(Handler.java:92)
	at android.os.Looper.loop(Looper.java:130)
	at android.app.ActivityThread.main(ActivityThread.java:3683)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:507)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:870)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
	at dalvik.system.NativeStart.main(Native Method)

More reports at:
https://crash-stats.mozilla.com/report/list?signature=java.lang.NullPointerException%3A+at+android.view.inputmethod.InputMethodManager.getInstance%28InputMethodManager.java%29
I'm not sure what we can do about this crash. InputMethodManager.getInstance() is touching a null reference, but I don't see any obvious code paths that would fail in getInstance(). I suspect this might be an OOM.

https://github.com/android/platform_frameworks_base/blob/gingerbread/core/java/android/view/inputmethod/InputMethodManager.java#L457
(Reporter)

Comment 2

5 years ago
There have been no crashes for the last four weeks.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.