diff options
Diffstat (limited to 'libjava/java/awt/geom/RectangularShape.java')
-rw-r--r-- | libjava/java/awt/geom/RectangularShape.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/java/awt/geom/RectangularShape.java b/libjava/java/awt/geom/RectangularShape.java index 7143807..536dd28 100644 --- a/libjava/java/awt/geom/RectangularShape.java +++ b/libjava/java/awt/geom/RectangularShape.java @@ -170,7 +170,11 @@ public abstract class RectangularShape implements Shape, Cloneable public Object clone () { - return super.clone (); + try + { + return super.clone (); + } + catch (CloneNotSupportedException _) {return null;} } // This implements the PathIterator for all RectangularShape objects |