aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-07-29 15:52:04 +0200
committerChristian Schneppe <christian@pix-art.de>2018-07-29 15:52:04 +0200
commitdc5cca9b601930796dfa208a10ebb4443047fdcf (patch)
treedd968312c500862707fe66cd8105b62902a51c8c /src/main/java/de/pixart/messenger
parentf672d7d37c33567b709aecfcc20ab347a2efe376 (diff)
fix NEP in UpdaterActivity
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/ui/UpdaterActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java
index 2a30d07f2..4832dc466 100644
--- a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java
@@ -238,7 +238,7 @@ public class UpdaterActivity extends XmppActivity {
.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
- if (!downloadTask.getStatus().equals(AsyncTask.Status.FINISHED)) {
+ if (downloadTask != null && !downloadTask.getStatus().equals(AsyncTask.Status.FINISHED)) {
downloadTask.cancel(true);
}
if (mProgressDialog.isShowing()) {