Only compare versions, if parsing was successful, see Coverity issue 72294

This commit is contained in:
Sebastian Stenzel
2016-03-04 01:23:48 +01:00
parent e57b60f04e
commit 997f841662

View File

@@ -124,7 +124,9 @@ public class WelcomeController extends AbstractFXMLViewController {
final ObjectMapper mapper = new ObjectMapper();
final Map<String, String> map = mapper.readValue(responseData, new TypeReference<HashMap<String, String>>() {
});
this.compareVersions(map);
if (map != null) {
this.compareVersions(map);
}
}
} catch (IOException e) {
// no error handling required. Maybe next time the version check is successful.