1 Reply Latest reply on Oct 7, 2007 3:51 PM by Gavin King

    EL null bug?

    Martin Sznapka Newbie

      Hello I have following code:

      #{utils.bug(null)}
      


      public String bug(String s) {
       log.debug("Bug:" + (s == null) + "," + ("".equals(s)));
       return "";
      }
      


      Bug:false,true
      


      As you see, the argument from EL is passed as empty string and not as a null value. It is a bug, or it is EL feature?

      Thx