Bug 714715 - Variable is used before a null check in GeckoApp.launch [r=dougt]
--- a/mobile/android/base/GeckoApp.java
+++ b/mobile/android/base/GeckoApp.java
@@ -387,25 +387,25 @@ abstract public class GeckoApp
// Returns true when the intent is going to be handled by gecko launch
boolean launch(Intent intent)
{
Log.w(LOGTAG, "zerdatime " + new Date().getTime() + " - launch");
if (!checkAndSetLaunchState(LaunchState.Launching, LaunchState.Launched))
return false;
- String args = intent.getStringExtra("args");
- if (args != null && args.contains("-profile")) {
- // XXX: TO-DO set mProfileDir to the path passed in
- mUserDefinedProfile = true;
- }
-
if (intent == null)
intent = getIntent();
+ String args = intent.getStringExtra("args");
+ if (args != null && args.contains("-profile")) {
+ // XXX: TO-DO set mProfileDir to the path passed in
+ mUserDefinedProfile = true;
+ }
+
prefetchDNS(intent.getData());
new GeckoThread(intent, mLastUri, mLastTitle).start();
return true;
}
@Override
public boolean onCreateOptionsMenu(Menu menu)