From e50259f0ee0c2012cc72ec0d12cba25070f0c062 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Tue, 21 Dec 2004 20:53:35 +0000 Subject: [PATCH] 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 --- source/org/jivesoftware/smackx/packet/MUCUser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smackx/packet/MUCUser.java b/source/org/jivesoftware/smackx/packet/MUCUser.java index 75ae770af..9179012ec 100644 --- a/source/org/jivesoftware/smackx/packet/MUCUser.java +++ b/source/org/jivesoftware/smackx/packet/MUCUser.java @@ -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; } /**