Skip to content

Commit 6cec856

Browse files
committed
Added null check for progressDialog in onDestroy
1 parent f350f1c commit 6cec856

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ParseLoginUI/src/com/parse/ui/ParseLoginActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ public void onCreate(Bundle savedInstanceState) {
104104
@Override
105105
protected void onDestroy() {
106106
super.onDestroy();
107-
progressDialog.dismiss();
107+
if (progressDialog != null) {
108+
progressDialog.dismiss();
109+
}
108110
destroyed = true;
109111
}
110112

0 commit comments

Comments
 (0)