Commit 1d1a49b0 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed NPE when no JID was found in HTTP request.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5920 b35dd754-fafc-0310-a699-88a17e54d16e
parent 551942f6
......@@ -44,6 +44,11 @@
Presence Plugin Changelog
</h1>
<p><b>1.3.3</b> -- November 03, 2006</p>
<ul>
<li>Fixed NPE when no target JID was found in HTTP request.</li>
</ul>
<p><b>1.3.2</b> -- October 06, 2006</p>
<ul>
<li>Updated to use compression offered by Wildfire 3.1</li>
......
......@@ -5,8 +5,8 @@
<name>Presence Service</name>
<description>Exposes presence information through HTTP.</description>
<author>Jive Software</author>
<version>1.3.2</version>
<date>10/06/2006</date>
<version>1.3.3</version>
<date>11/03/2006</date>
<minServerVersion>3.1.0</minServerVersion>
<adminconsole>
......
......@@ -155,6 +155,9 @@ public class PresencePlugin implements Plugin, Component {
* does not exist in the local server.
*/
public Presence getPresence(String sender, String jid) throws UserNotFoundException {
if (jid == null) {
throw new UserNotFoundException("Target JID not found in request");
}
JID targetJID = new JID(jid);
// Check that the sender is not requesting information of a remote server entity
if (targetJID.getDomain() == null || XMPPServer.getInstance().isRemote(targetJID)) {
......
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