--- java/awt/Rectangle.java 4 Sep 2006 08:52:32 -0000 1.17
+++ java/awt/Rectangle.java 26 Sep 2006 19:13:22 -0000
@@ -124,6 +124,9 @@
*/
public Rectangle(Rectangle r)
{
+ if (r == null)
+ throw new NullPointerException();
+
x = r.x;
y = r.y;
width = r.width;
@@ -172,6 +175,9 @@Does this make sense? NPE would be thrown anyway when referencing the r.x. If this seems not obvious, I would suggest just to write comment. Audrius.
