1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Fix for removing packet listeners.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1870 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-04-08 22:22:57 +00:00 committed by mtucker
parent 68d489ef79
commit bd4d3114d4

View file

@ -172,7 +172,7 @@ class PacketReader {
synchronized (listeners) {
for (int i=0; i<listeners.size(); i++) {
ListenerWrapper wrapper = (ListenerWrapper)listeners.get(i);
if (wrapper.packetListener.equals(packetListener)) {
if (wrapper != null && wrapper.packetListener.equals(packetListener)) {
listeners.set(i, null);
}
}