mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
use iter.remove to avoid ConcurrentModificationException
This commit is contained in:
parent
6ce47f8208
commit
891af6a84d
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ public class LocUtils {
|
||||||
WeakReference<Menu> ref = iter.next();
|
WeakReference<Menu> ref = iter.next();
|
||||||
if ( null == ref.get() ) {
|
if ( null == ref.get() ) {
|
||||||
DbgUtils.logf( "LocUtils.pareMenus(): removing menu as ref is gone" );
|
DbgUtils.logf( "LocUtils.pareMenus(): removing menu as ref is gone" );
|
||||||
s_menuSets.remove( ref );
|
iter.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue