try
{
LOCK.writeLock().lock();
- Iterator<int[]> it = hiddenColumns.iterator();
- while (it.hasNext())
+ if (hiddenColumns != null)
{
- int[] region = it.next();
- for (int j = region[0]; j < region[1] + 1; j++)
+ Iterator<int[]> it = hiddenColumns.iterator();
+ while (it.hasNext())
{
- sel.addElement(j);
+ int[] region = it.next();
+ for (int j = region[0]; j < region[1] + 1; j++)
+ {
+ sel.addElement(j);
+ }
}
+ hiddenColumns = null;
}
- hiddenColumns = null;
} finally
{
LOCK.writeLock().unlock();