mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42:05 +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:
parent
d196becbd7
commit
1a093754e1
1 changed files with 3 additions and 0 deletions
|
@ -248,6 +248,9 @@ public class ServiceDiscoveryManager {
|
|||
* to a given node.
|
||||
*/
|
||||
private NodeInformationProvider getNodeInformationProvider(String node) {
|
||||
if (node == null) {
|
||||
return null;
|
||||
}
|
||||
return (NodeInformationProvider) nodeInformationProviders.get(node);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue