This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: image loading fixes
- From: Sascha Brawer <brawer at dandelis dot ch>
- To: Thomas Fitzsimmons <fitzsim at redhat dot com>
- Cc: GNU Classpath <classpath at gnu dot org>,GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: Wed, 12 Nov 2003 09:12:05 +0100
- Subject: Re: Patch: image loading fixes
- References: <1068586410.3911.312.camel@tortoise.toronto.redhat.com>
Hi Tom,
Thomas Fitzsimmons <fitzsim@redhat.com> wrote on Tue, 11 Nov
2003 16:33:30 -0500:
>[patch to java/awt/Component.java]
public boolean prepareImage(Image image, ImageObserver observer)
{
+ if (image == null)
+ throw new NullPointerException ();
+
return prepareImage(image, image.getWidth(observer),
image.getHeight(observer), observer);
}
Actually, the test for image == null is not needed.
-- Sascha
Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/