diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/UpdaterActivity.java | 6 |
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("\\."); |