mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
Bug 725380 - CrashReporter can call doFinish twice r=kats
This commit is contained in:
parent
abd26d32f6
commit
a3ab1f3918
@ -101,7 +101,13 @@ public class CrashReporter extends Activity
|
||||
@Override
|
||||
public void finish()
|
||||
{
|
||||
mProgressDialog.dismiss();
|
||||
try {
|
||||
if (mProgressDialog.isShowing()) {
|
||||
mProgressDialog.dismiss();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.e(LOGTAG, "exception while closing progress dialog: ", e);
|
||||
}
|
||||
super.finish();
|
||||
}
|
||||
|
||||
@ -230,8 +236,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