mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 725380 - CrashReporter can call doFinish twice r=kats
This commit is contained in:
parent
d4955c75c9
commit
1b15734142
@ -101,7 +101,12 @@ public class CrashReporter extends Activity
|
||||
@Override
|
||||
public void finish()
|
||||
{
|
||||
mProgressDialog.dismiss();
|
||||
try {
|
||||
if (mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
}
|
||||
super.finish();
|
||||
}
|
||||
|
||||
@ -230,8 +235,10 @@ public class CrashReporter extends Activity
|
||||
final CheckBox includeURLCheckbox = (CheckBox) findViewById(R.id.include_url);
|
||||
|
||||
String spec = extras.get("ServerURL");
|
||||
if (spec == null)
|
||||
if (spec == null) {
|
||||
doFinish();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.i("GeckoCrashReport", "server url: " + spec);
|
||||
try {
|
||||
|
@ -241,8 +241,10 @@ public class CrashReporter extends Activity
|
||||
final CheckBox includeURLCheckbox = (CheckBox) findViewById(R.id.include_url);
|
||||
|
||||
String spec = extras.get(SERVER_URL_KEY);
|
||||
if (spec == null)
|
||||
if (spec == null) {
|
||||
doFinish();
|
||||
return;
|
||||
}
|
||||
|
||||
Log.i(LOGTAG, "server url: " + spec);
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user