[Schmitzm-commits] r1245 - trunk/src/schmitzm/io

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Nov 5 17:40:16 CET 2010


Author: alfonx
Date: 2010-11-05 17:40:16 +0100 (Fri, 05 Nov 2010)
New Revision: 1245

Modified:
   trunk/src/schmitzm/io/IOUtil.java
Log:
use "overwritten" jnlp base url for index.html also when exporting with JArExportUtil

Modified: trunk/src/schmitzm/io/IOUtil.java
===================================================================
--- trunk/src/schmitzm/io/IOUtil.java	2010-11-05 13:10:41 UTC (rev 1244)
+++ trunk/src/schmitzm/io/IOUtil.java	2010-11-05 16:40:16 UTC (rev 1245)
@@ -247,6 +247,8 @@
 	 * 
 	 */
 	public static URL getParentUrl(final URL url) throws MalformedURLException {
+		if (url == null)
+			throw new MalformedURLException();
 		String a = url.toExternalForm();
 		final int lastDotPos = a.lastIndexOf('/');
 		if (lastDotPos >= 0)
@@ -1161,7 +1163,8 @@
 	 *         <code>http://www.bahn.de/exterme<code> both return <code>exterme</code>
 	 */
 	public static String getFilename(URL url) {
-		if (url == null) return "";
+		if (url == null)
+			return "";
 		return new File(url.getPath()).getName();
 	}
 



More information about the Schmitzm-commits mailing list