aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-03-27 21:09:00 +0200
committerChristian Schneppe <christian@pix-art.de>2017-04-05 22:21:41 +0200
commit9a91b80593e327e2ece19755f3c54b7b897ad60a (patch)
tree7d65301cce50ff17d64218c9e5355d8ebd1848b1 /src/main/java/de/pixart/messenger/ui
parenta8e179ab4e8570ed468f2905fd45a8b184c22b49 (diff)
fix small bug with updater on devices < SDK 21
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r--src/main/java/de/pixart/messenger/ui/UpdaterActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java
index b043c3db7..666e3beba 100644
--- a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java
@@ -193,8 +193,10 @@ public class UpdaterActivity extends Activity {
}
try {
remoteV = remoteVersion.split(" ");
- if (installedV[1] != null) {
- remoteV[0] = remoteV[0] + ".1";
+ if (installedV != null && installedV.length > 1) {
+ if (installedV[1] != null) {
+ remoteV[0] = remoteV[0] + ".1";
+ }
}
Log.d(Config.LOGTAG, "Updater Version on server: " + remoteV[0]);
remote = remoteV[0].split("\\.");