DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30409>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30409

Bad error message when taglib shortname is null





------- Additional Comments From [EMAIL PROTECTED]  2004-07-30 14:26 -------
I'm not sure.  This test works without an error or an NPE:
public class Test {
  public static void main(String[] args) {
    String shortname = null;
    String[] tagFiles = new String[] { "A", "B", "C" };
    for(int i = 0; i < tagFiles.length; i++) {
      if(tagFiles[i].equals(shortname)) {
        System.out.println("found");
      }
    }
    System.out.println("Finished with no error.");
  }
}

The program finishes with no error.  

Of course, if tags[i].getTagName() is null, then an NPE would occur.

In addition, I suggest you try this against Tomcat 5: filing bugs that aren't 
showstopper or spec-related against Tomcat 4 is not recommended, as that branch 
is not actively developed.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to