You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/07/30 16:26:16 UTC

DO NOT REPLY [Bug 30409] - Bad error message when taglib shortname is null

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 yoavs@computer.org  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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org