diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-09-11 20:58:06 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-09-11 20:58:06 +0200 |
commit | d3294d94361d2bef850ad42992c14590c46c154d (patch) | |
tree | 4e18d186c5bd8b8eef96f21eaa7f4db935836e6f /src/main/java/de/pixart/messenger/ui | |
parent | c884ea1f90dc3f566ab5eac83927fdc4367faa6a (diff) |
catch NPE on detecting tor connection in UpdaterActivity
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/UpdaterActivity.java | 5 |
1 files changed, 4 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 0c59b06c6..b8a43e25f 100644 --- a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java +++ b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java @@ -57,7 +57,10 @@ public class UpdaterActivity extends XmppActivity { //set activity setContentView(R.layout.activity_updater); - this.mUseTor = mXmppConnectionService.useTorToConnect(); + this.mUseTor = false; + if (mXmppConnectionService != null) { + this.mUseTor = mXmppConnectionService.useTorToConnect(); + } this.mTheme = findTheme(); setTheme(this.mTheme); |