summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkitfox2009-05-31 23:23:41 +0200
committerkitfox2009-05-31 23:23:41 +0200
commit987721ab6d78efb7611facf57d464e7d3e8d2c32 (patch)
tree5ea866aa557cc7e9c6f0fd98a0b3a1444af114c4
parentColor table now parses the 'currentColor' color (diff)
downloadsvg-salamander-core-987721ab6d78efb7611facf57d464e7d3e8d2c32.tar.gz
svg-salamander-core-987721ab6d78efb7611facf57d464e7d3e8d2c32.tar.xz
svg-salamander-core-987721ab6d78efb7611facf57d464e7d3e8d2c32.zip
Now checking to see if path exists when resolving jar: urls.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@68 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
-rw-r--r--src/main/java/com/kitfox/svg/SVGUniverse.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/kitfox/svg/SVGUniverse.java b/src/main/java/com/kitfox/svg/SVGUniverse.java
index ed6c0ce..c48a9e7 100644
--- a/src/main/java/com/kitfox/svg/SVGUniverse.java
+++ b/src/main/java/com/kitfox/svg/SVGUniverse.java
@@ -303,7 +303,7 @@ public class SVGUniverse implements Serializable
try
{
URL url;
- if ("jar".equals(xmlBase.getScheme()) && !xmlBase.getPath().contains("!/"))
+ if ("jar".equals(xmlBase.getScheme()) && xmlBase.getPath() != null && !xmlBase.getPath().contains("!/"))
{
//Workaround for resources stored in jars loaded by Webstart.
//http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6753651