{
LOCK.readLock().lock();
- int regionindex = cursor.findRegionForColumn(column, false)
- .getRegionIndex();
- if (regionindex > -1 && regionindex < hiddenColumns.size())
+ if (!hiddenColumns.isEmpty())
{
- int[] region = hiddenColumns.get(regionindex);
- // already know that column <= region[1] as cursor returns containing
- // region or region to right
- if (column >= region[0])
+ int regionindex = cursor.findRegionForColumn(column, false)
+ .getRegionIndex();
+ if (regionindex > -1 && regionindex < hiddenColumns.size())
{
- return false;
+ int[] region = hiddenColumns.get(regionindex);
+ // already know that column <= region[1] as cursor returns containing
+ // region or region to right
+ if (column >= region[0])
+ {
+ return false;
+ }
}
}
return true;