Skip to content

Commit

Permalink
Check dialog state before dismissing
Browse files Browse the repository at this point in the history
  • Loading branch information
bpellin committed Mar 3, 2020
1 parent 6727faa commit 8ce638b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/com/keepassdroid/ProgressTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ public void run() {
private class CloseProcessDialog implements Runnable {

public void run() {
mPd.dismiss();
if ( (mPd != null) && mPd.isShowing()) {
mPd.dismiss();
}
}

}
Expand Down

0 comments on commit 8ce638b

Please sign in to comment.