Commit e4470e82 authored by Holger Bergunde's avatar Holger Bergunde Committed by holger.bergunde

OF-490 fixed NPE in GoJara DiscoPackageInterceptorHandler

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12995 b35dd754-fafc-0310-a699-88a17e54d16e
parent e7ce159e
......@@ -7,7 +7,7 @@
<name>GoJara</name>
<description>ProtoXEP-xxxx: Remote Roster Management support</description>
<author>Holger Bergunde and Daniel Henninger</author>
<version>1.1.0 Alpha</version>
<version>1.1.1 Alpha</version>
<date>01/06/2012</date>
<databaseKey>gojara</databaseKey>
<databaseVersion>0</databaseVersion>
......
......@@ -43,6 +43,9 @@ public class DiscoPackageInterceptorHandler implements PacketInterceptor {
if (packet instanceof IQ) {
IQ iqpacket = (IQ) packet;
Element root = iqpacket.getChildElement();
if (root == null)
return;
String ns = root.getNamespaceURI();
if (ns.equals("http://jabber.org/protocol/disco#items") && iqpacket.getType().equals(IQ.Type.result)) {
if (!_permissions.allowedForUser(_subDomain, iqpacket.getTo())) {
......
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