mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
NullPointer fix.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1950 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
92d8dc21fc
commit
c8ea8a84e9
1 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ public class DefaultPacketExtension implements PacketExtension {
|
|||
*/
|
||||
public synchronized Iterator getNames() {
|
||||
if (map == null) {
|
||||
Collections.EMPTY_LIST.iterator();
|
||||
return Collections.EMPTY_LIST.iterator();
|
||||
}
|
||||
return Collections.unmodifiableMap(new HashMap(map)).keySet().iterator();
|
||||
}
|
||||
|
@ -163,4 +163,4 @@ public class DefaultPacketExtension implements PacketExtension {
|
|||
}
|
||||
map.put(name, value);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue