From bf933069c26412cd795d11ecadeb84137e67ed04 Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Tue, 21 Oct 2014 03:03:29 -0700 Subject: [PATCH] 1.0.90 - Don't show error when ripping a valid URL Closes #110 --- pom.xml | 2 +- src/main/java/com/rarchives/ripme/ui/MainWindow.java | 3 +++ src/main/java/com/rarchives/ripme/ui/UpdateUtils.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 28457804..a66e15c8 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.rarchives.ripme ripme jar - 1.0.89 + 1.0.90 ripme http://rip.rarchives.com diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 0eebffce..c84002ba 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -441,6 +441,9 @@ public class MainWindow implements Runnable, RipStatusHandler { private void update() { try { String urlText = ripTextfield.getText().trim(); + if (urlText.equals("")) { + return; + } if (!urlText.startsWith("http")) { urlText = "http://" + urlText; } diff --git a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java index 987173c3..733c64a4 100644 --- a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java +++ b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java @@ -21,7 +21,7 @@ import com.rarchives.ripme.utils.Utils; public class UpdateUtils { private static final Logger logger = Logger.getLogger(UpdateUtils.class); - private static final String DEFAULT_VERSION = "1.0.89"; + private static final String DEFAULT_VERSION = "1.0.90"; private static final String updateJsonURL = "http://rarchives.com/ripme.json"; private static final String updateJarURL = "http://rarchives.com/ripme.jar"; private static final String mainFileName = "ripme.jar";