summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/kitfox/svg/ImageSVG.java2
-rw-r--r--src/main/java/com/kitfox/svg/TransformableElement.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/kitfox/svg/ImageSVG.java b/src/main/java/com/kitfox/svg/ImageSVG.java
index 5b4c66f..44c5466 100644
--- a/src/main/java/com/kitfox/svg/ImageSVG.java
+++ b/src/main/java/com/kitfox/svg/ImageSVG.java
@@ -123,7 +123,7 @@ public class ImageSVG extends RenderableElement
} catch (Exception e)
{
Logger.getLogger(SVGConst.SVG_LOGGER).log(Level.WARNING,
- "Could not parse xlink:href", e);
+ "Could not parse xlink:href " + src, e);
// e.printStackTrace();
imageSrc = null;
}
diff --git a/src/main/java/com/kitfox/svg/TransformableElement.java b/src/main/java/com/kitfox/svg/TransformableElement.java
index f5a3e58..a8f951f 100644
--- a/src/main/java/com/kitfox/svg/TransformableElement.java
+++ b/src/main/java/com/kitfox/svg/TransformableElement.java
@@ -70,7 +70,7 @@ abstract public class TransformableElement extends SVGElement
*/
public AffineTransform getXForm()
{
- return new AffineTransform(xform);
+ return xform == null ? null : new AffineTransform(xform);
}
/*
public void loaderStartElement(SVGLoaderHelper helper, Attributes attrs, SVGElement parent)