Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.7-incubating
-
None
-
None
Description
I'm using a cell range address like this: 'TableName'.A1:'TableName.EN4'
This is a valid format and matches the regex in the class CellRangeAddress.class.
In DataSet:618 you are going through a NodeList to find the table by a given name. The given table name has been extracted from the cell range address.
The problem: the extracted table name contains the quotes chars and no table will be found in this case, because: 'Tablename' != TableName
possible solution:
private boolean matchingTable(String extractedName, String tableName){
if(extractedName != null && extractedName.startsWith("'")&& extractedName.endsWith("'"))
if(tableName != null && tableName.startsWith("'")&& tableName.endsWith("'"))
{ tableName = tableName.substring(1, tableName.length()-1); } return extractedName.equals(tableName);
}