Fixed NPE when no recommended version is found.
This commit is contained in:
parent
a2d69bc4f8
commit
d8750a5d08
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ public class Version {
|
||||||
property.comment = "indicates the last version the user has been informed about and will suppress further notices on it.";
|
property.comment = "indicates the last version the user has been informed about and will suppress further notices on it.";
|
||||||
String seenVersion = property.value;
|
String seenVersion = property.value;
|
||||||
|
|
||||||
if (recommendedVersion.equals(seenVersion))
|
if (recommendedVersion == null || recommendedVersion.equals(seenVersion))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
property.value = recommendedVersion;
|
property.value = recommendedVersion;
|
||||||
|
|
Loading…
Reference in a new issue