Commit c68503d1 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed possible NPE. JM-1082

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8446 b35dd754-fafc-0310-a699-88a17e54d16e
parent b24a9ed4
......@@ -1380,7 +1380,7 @@ public class MUCRoomImpl implements MUCRoom {
if (reason != null && reason.length() > 0) {
Element invite = frag.element("invite");
if (invite == null) {
invite.addElement("invite");
invite = frag.addElement("invite");
}
invite.addElement("reason").setText(reason);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment