Index: java/awt/image/IndexColorModel.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/awt/image/IndexColorModel.java,v retrieving revision 1.12 diff -u -r1.12 IndexColorModel.java --- java/awt/image/IndexColorModel.java 25 Nov 2004 20:25:17 -0000 1.12 +++ java/awt/image/IndexColorModel.java 1 Apr 2005 16:27:26 -0000 @@ -432,7 +432,7 @@ */ public final int getRGB (int pixel) { - if (pixel < map_size) + if (pixel >= 0 && pixel < map_size) return rgb[pixel]; return 0;