From 3d3296f4ff29ea41c294e0b89dda1d0c2684e95b Mon Sep 17 00:00:00 2001 From: yugecin Date: Tue, 11 Oct 2016 11:04:41 +0200 Subject: [PATCH] fix #25 --- src/itdelatrisu/opsu/downloads/Updater.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/itdelatrisu/opsu/downloads/Updater.java b/src/itdelatrisu/opsu/downloads/Updater.java index a9fd7699..307b8e54 100644 --- a/src/itdelatrisu/opsu/downloads/Updater.java +++ b/src/itdelatrisu/opsu/downloads/Updater.java @@ -109,6 +109,9 @@ public class Updater { private Download download; public String getCurrentVersion() { + if (currentVersion == null) { + return "unknown version"; + } return currentVersion.getMajorVersion() + "." + currentVersion.getMinorVersion() + "." + currentVersion.getIncrementalVersion(); }