Commit 5581b6c0 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed NPE with IQ of type error.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2930 b35dd754-fafc-0310-a699-88a17e54d16e
parent 736a0e25
/** /**
* $RCSfile$ * $RCSfile: MultiUserChatServerImpl.java,v $
* $Revision$ * $Revision$
* $Date$ * $Date$
* *
...@@ -214,6 +214,10 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha ...@@ -214,6 +214,10 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
private boolean process(IQ iq) { private boolean process(IQ iq) {
Element childElement = iq.getChildElement(); Element childElement = iq.getChildElement();
String namespace = null; String namespace = null;
// Ignore IQs of type ERROR
if (IQ.Type.error == iq.getType()) {
return false;
}
if (childElement != null) { if (childElement != null) {
namespace = childElement.getNamespaceURI(); namespace = childElement.getNamespaceURI();
} }
......
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