StringUtils.parseServer()

Hi,

may be there is an incorrect code in ‘‘StringUtils.parseServer()’’ :

...
  int atIndex = XMPPAddress.indexOf("@");
  // If the String ends with ''@'', return the empty string.
  if (atIndex + 1 > XMPPAddress.length() _*|| atIndex < 0*_) {
      return "";
  }   ...

when i get packet from gateway its name is:

from="yahoo.myjabber.net/registred"

and

parseServer()

return “”.

Thanks.

Message was edited by: iain

Reformatted the code markup

Message was edited by: Oleg

Oleg,

Yes, this appears to be a bug. I’'ll get a fix in place.

Thanks,

Matt