fix potential FC

This commit is contained in:
ligi 2014-09-04 13:25:05 +02:00
parent e013eee8e8
commit b2ef0c6f32

View file

@ -45,6 +45,12 @@ public class PassImportActivity extends ActionBarActivity {
super.onPostExecute(result);
if (result == null) {
if (!passImportActivity.isFinishing()) {
progressDialog.dismiss();
}
finish();
//TODO show some error here?!
return; // no result -> no work here
}