Fixed to ensure that reason is not null. If no reason was provided then return an empty string. SMACK-165

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2432 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-12-21 20:53:35 +00:00 committed by gaston
parent aaeb476f05
commit e50259f0ee
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ public class MUCUser implements PacketExtension {
* @return the reason for the item child.
*/
public String getReason() {
return reason;
return reason == null ? "" : reason;
}
/**