Closed Bug 721431 Opened 12 years ago Closed 12 years ago

Null pointer exception at startup at org.mozilla.gecko.GeckoApp.onCreate(GeckoApp.java:1516)

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
critical

Tracking

(firefox12 affected)

RESOLVED WORKSFORME
Tracking Status
firefox12 --- affected

People

(Reporter: jseward, Assigned: dougt)

Details

(Keywords: crash, Whiteboard: [native-crash], startupcrash)

Nexus S running 2.3.x built from source (AOSP), fails at startup
(both nightly and from-source build) as shown below.
GeckoApp.java:1516 is

        mBrowserToolbar.setTitle(mLastTitle);

------------

FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.mozilla.fennec/org.mozilla.fennec.App}: java.lang.NullPointerException
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
       at android.app.ActivityThread.access$1500(ActivityThread.java:117)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       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:868)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
       at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
       at org.mozilla.gecko.GeckoApp.onCreate(GeckoApp.java:1516)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
       ... 11 more
Severity: normal → critical
Keywords: crash
Whiteboard: [native-crash], startupcrash
Are you able to reproduce on a Nightly build?
Assignee: nobody → doug.turner
(In reply to Aaron Train [:aaronmt] from comment #1)
> Are you able to reproduce on a Nightly build?

Yep.  Reproduces with latest nightly.
At Mike Hommey's suggestion, I did Settings -> Privacy -> Factory Data Reset on
the phone, then reinstalled nightly, but it still NPEs.
julian,

Can you add some logging around where mBrowserToolbar is touched?  Why is it null?
tracking-fennec: --- → ?
I'm sorry, but I don't have a test case any more.  I upgraded the
phone to ICS and nightlies work just fine on that.  I'd be inclined
to close this as invalid, unless someone else sees the same failure
on 2.3.x.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
tracking-fennec: ? → ---
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.