I found this problem when I tested this applet:
http://www.btinternet.com/~se16/js/mapproj.htm
The JDK doesnt care if the ImageProducer is null when passed to the
constructor.
2006-06-13 Lillian Angel <[EMAIL PROTECTED]>
* java/awt/image/PixelGrabber.java
(PixelGrabber): Removed check to throw exception. JDK does
not do this.
(startGrabbing): Removed line to print stacktrace.
Index: java/awt/image/PixelGrabber.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/image/PixelGrabber.java,v
retrieving revision 1.15
diff -u -r1.15 PixelGrabber.java
--- java/awt/image/PixelGrabber.java 18 Aug 2005 13:45:44 -0000 1.15
+++ java/awt/image/PixelGrabber.java 13 Jun 2006 14:14:59 -0000
@@ -131,9 +131,6 @@
public PixelGrabber(ImageProducer ip, int x, int y, int w, int h,
int pix[], int off, int scansize)
{
- if (ip == null)
- throw new NullPointerException("The ImageProducer must not be null.");
-
this.ip = ip;
this.x = x;
this.y = y;
@@ -222,7 +219,6 @@
}
catch (Exception ex)
{
- ex.printStackTrace();
imageComplete(ImageConsumer.IMAGEABORTED);
}
}