mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +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();
|
||||||
}
|
}
|
||||||
|
@ -163,4 +163,4 @@ public class DefaultPacketExtension implements PacketExtension {
|
||||||
}
|
}
|
||||||
map.put(name, value);
|
map.put(name, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue