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

OF-490 gojara version 1.2.1 alpha

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13037 b35dd754-fafc-0310-a699-88a17e54d16e
parent f3639ccc
......@@ -7,7 +7,7 @@
<name>GoJara</name>
<description>ProtoXEP-xxxx: Remote Roster Management support</description>
<author>Holger Bergunde and Daniel Henninger</author>
<version>1.2.0 Alpha</version>
<version>1.2.1 Alpha</version>
<date>02/17/2012</date>
<databaseKey>gojara</databaseKey>
<databaseVersion>0</databaseVersion>
......
......@@ -45,7 +45,7 @@ public class IQLastInterceptor implements PacketInterceptor {
if (packet instanceof IQ && incoming && processed) {
IQ iqpacket = (IQ) packet;
if (!iqpacket.getTo().toString().contains(_subDomain))
if (iqpacket.getTo() == null || !iqpacket.getTo().toString().contains(_subDomain))
return;
Element root = iqpacket.getChildElement();
......@@ -54,7 +54,6 @@ public class IQLastInterceptor implements PacketInterceptor {
String ns = root.getNamespaceURI();
if (ns.equals("jabber:iq:last") && iqpacket.getType().equals(IQ.Type.get)) {
IQ answer = new IQ();
answer.setType(IQ.Type.error);
answer.setFrom(iqpacket.getTo());
......@@ -73,7 +72,6 @@ public class IQLastInterceptor implements PacketInterceptor {
Log.debug("Auto response to jabber:iq:last for " + _subDomain);
PacketRouter router = XMPPServer.getInstance().getPacketRouter();
router.route(answer);
}
}
......
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