Fixed NPE when no recommended version is found.

This commit is contained in:
SirSengir 2012-12-18 20:56:43 +01:00
parent a2d69bc4f8
commit d8750a5d08

View file

@ -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;