After updating to aspose-cells-21.4 (java) we are facing an Issue with getFormulaLocal() when using a custom GlobalizationSettings-Object.
An internal call to getListSeparator() throws an NPE:
java.lang.NullPointerException
at com.aspose.cells.GlobalizationSettings.getListSeparator(Unknown Source)
at com.aspose.cells.zafc.<init>(Unknown Source)
at com.aspose.cells.zadt.<init>(Unknown Source)
at com.aspose.cells.zadt.<init>(Unknown Source)
at com.aspose.cells.zadt.<init>(Unknown Source)
at com.aspose.cells.Cell.getFormulaLocal(Unknown Source)
So far this happens only with Version 21.4. Other Versions tested (21.2., 21.3, 20.7) don’t show this behavior.
Here is a minimal testcase for reproducing the error:
public static void main(String[] args) throws Exception
{
Workbook wb = new Workbook();
//Happens only when setting a custom settings object
wb.getSettings().setGlobalizationSettings(new GlobalizationSettings() {});
Worksheet sheet = wb.getWorksheets().get(0);
Cell cell = sheet.getCells().get("A1");
cell.setFormula("=1=1");
//This call throws an NPE
System.out.println(cell.getFormulaLocal());
}
Any hints?