Index: java/util/TimeZone.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/util/TimeZone.java,v retrieving revision 1.27 diff -u -r1.27 TimeZone.java --- java/util/TimeZone.java 6 Nov 2004 23:24:36 -0000 1.27 +++ java/util/TimeZone.java 6 Jan 2005 11:37:43 -0000 @@ -989,9 +989,13 @@ * Sets the identifier of this time zone. For instance, PST for * Pacific Standard Time. * @param id the new time zone ID. + * @throws NullPointerException if id is null */ public void setID(String id) { + if (id == null) + throw new NullPointerException(); + this.ID = id; }