diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-07-09 22:39:46 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-07-09 22:39:46 +0200 |
commit | 0a979ca94cbfdb81196e22aebe376afa35ed09b5 (patch) | |
tree | f0fe73609fa2ecfd4355888f9384ddf2a7b7dfcf /src/main/java/de | |
parent | cc138052977ae7d72b01661fb35b4ac42b1d53fb (diff) |
fixed npe in WelcomeActivity
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/WelcomeActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java b/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java index 7906c7f40..3c03542ee 100644 --- a/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java +++ b/src/main/java/de/pixart/messenger/ui/WelcomeActivity.java @@ -245,7 +245,9 @@ public class WelcomeActivity extends XmppActivity { if (checkDB != null) { checkDB.close(); } - Log.d(Config.LOGTAG, "checkDB = " + checkDB.toString() + ", Backup DB = " + Backup_DB_Version + ", DB = " + DB_Version); + if (checkDB != null) { + Log.d(Config.LOGTAG, "checkDB = " + checkDB.toString() + ", Backup DB = " + Backup_DB_Version + ", DB = " + DB_Version); + } if (checkDB != null && Backup_DB_Version != 0 && Backup_DB_Version <= DB_Version) { try { ImportDatabase(); |