Fixes potential crashes

This commit is contained in:
stom79 2017-12-19 06:53:07 +01:00
parent fe6490e67e
commit 160732caf1
1 changed files with 1 additions and 1 deletions

View File

@ -1633,7 +1633,7 @@ public class Helper {
//Check instance release for lists
String instance = Helper.getLiveInstance(activity);
String instanceVersion = sharedpreferences.getString(Helper.INSTANCE_VERSION + userID + instance, null);
if (instanceVersion != null) {
if (instanceVersion != null && navigationView.getMenu().findItem(R.id.nav_list) != null) {
Version currentVersion = new Version(instanceVersion);
Version minVersion = new Version("2.1");
if (currentVersion.compareTo(minVersion) == 1 || currentVersion.equals(minVersion)) {