mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +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();
|
||||
if ( null == ref.get() ) {
|
||||
DbgUtils.logf( "LocUtils.pareMenus(): removing menu as ref is gone" );
|
||||
s_menuSets.remove( ref );
|
||||
iter.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue