[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-dev
Subject:    DO NOT REPLY [Bug 30409]  -
From:       bugzilla () apache ! org
Date:       2004-07-30 14:26:16
Message-ID: 20040730142616.29615.qmail () nagoya ! betaversion ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic