aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-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("\\.");