diff options
author | kitfox | 2009-05-31 23:23:41 +0200 |
---|---|---|
committer | kitfox | 2009-05-31 23:23:41 +0200 |
commit | 987721ab6d78efb7611facf57d464e7d3e8d2c32 (patch) | |
tree | 5ea866aa557cc7e9c6f0fd98a0b3a1444af114c4 | |
parent | Color table now parses the 'currentColor' color (diff) | |
download | svg-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.java | 2 |
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
|