mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +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() {
|
public synchronized Iterator getNames() {
|
||||||
if (map == null) {
|
if (map == null) {
|
||||||
Collections.EMPTY_LIST.iterator();
|
return Collections.EMPTY_LIST.iterator();
|
||||||
}
|
}
|
||||||
return Collections.unmodifiableMap(new HashMap(map)).keySet().iterator();
|
return Collections.unmodifiableMap(new HashMap(map)).keySet().iterator();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue