Index: trunk/src/com/kitfox/svg/ShapeElement.java
===================================================================
--- trunk/src/com/kitfox/svg/ShapeElement.java	(revision 8084)
+++ trunk/src/com/kitfox/svg/ShapeElement.java	(revision 10787)
@@ -76,4 +76,5 @@
     }
 
+    @Override
     abstract public void render(java.awt.Graphics2D g) throws SVGException;
 
@@ -85,4 +86,5 @@
      */
 
+    @Override
     void pick(Point2D point, boolean boundingBox, List retVec) throws SVGException
     {
@@ -95,4 +97,5 @@
     }
 
+    @Override
     void pick(Rectangle2D pickArea, AffineTransform ltw, boolean boundingBox, List retVec) throws SVGException
     {
@@ -161,5 +164,9 @@
                         if (ele != null)
                         {
-                            fillPaint = ((FillElement)ele).getPaint(bounds, xform);
+                            try {
+                                fillPaint = ((FillElement)ele).getPaint(bounds, xform);
+                            } catch (IllegalArgumentException e) {
+                                throw new SVGException(e);
+                            }
                         }
                     }
