1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-23 14:52:06 +01:00

Fixes NPE when sending null as the node while trying to get the NodeInformationProvider for a node.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2364 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-08-10 13:03:15 +00:00 committed by gdombiak
parent d196becbd7
commit 1a093754e1

View file

@ -248,6 +248,9 @@ public class ServiceDiscoveryManager {
* to a given node. * to a given node.
*/ */
private NodeInformationProvider getNodeInformationProvider(String node) { private NodeInformationProvider getNodeInformationProvider(String node) {
if (node == null) {
return null;
}
return (NodeInformationProvider) nodeInformationProviders.get(node); return (NodeInformationProvider) nodeInformationProviders.get(node);
} }