[6315] in java-interest

home help back first fref pref prev next nref lref last post

strange behaviour of pixel grabber

daemon@ATHENA.MIT.EDU (Joachim Laier)
Thu Mar 28 19:27:29 1996

Date:         Fri, 22 Mar 1996 14:16:19 +0100
Reply-To: Joachim.Laier@zfe.siemens.de
From: Joachim Laier <laier@BSUN17.ZFE.SIEMENS.DE>
To: Multiple recipients of list JAVA-INTEREST
              <JAVA-INTEREST@JAVASOFT.COM>

Hello Java developers,

the class PixelGrabber of the package 'java.awt.image.*' shows some strange behaviour:

I created an instance of PixelGrabber and passed an array to it. I forgot to initialise (create) that array. Therefore I passed a null-handle. However I didn't get an error, neither when the pixel were grabbed from the source image, nor when I created a new image using MemoryImageSource.

Shouldn't there be some kind of error or exception?

Cheers
Jo

-----
This message has been forwarded via the JAVA-INTEREST
mailing list.  In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).

home help back first fref pref prev next nref lref last post