1
0
Fork 0
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:
Matt Tucker 2003-05-27 15:18:02 +00:00 committed by mtucker
parent 92d8dc21fc
commit c8ea8a84e9

View file

@ -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);
}
}
}