XlsxReaderWriter is an Objective-C library for iPhone / iPad and Mac. It parses and writes MS Excel XLSX files.
437
stars
119
forks
source link
NSInvalidArgumentException occurs when saving xlsx file including external link. #81
Open
KohsakuNishida opened 7 years ago
Thank you for providing useful library.
Opening and saving an xlsx file containing an expression like this will result in an NSInvalidArgumentException.
A2 ='/XXXX/YYY/[ExternalLink.xlsx]Sheet1'!$B$2
The information on the place of occurrence when adding a test case and running is shown below.
Test Case '-[BRAXlsxReaderWriterTests testUDB01]' started. /Users/kohsaku/Project/XlsxReaderWriter/XlsxReaderWriter/BRAContentTypes.m:99: error: -[BRAXlsxReaderWriterTests testUDB01] : failed: caught "NSInvalidArgumentException", "*** -[NSArrayM insertObject:atIndex:]: object cannot be nil" ( 0 CoreFoundation 0x00000001059f4b0b exceptionPreprocess + 171 1 libobjc.A.dylib 0x0000000105459141 objc_exception_throw + 48 2 CoreFoundation 0x0000000105929443 -[__NSArrayM insertObject:atIndex:] + 1603 3 XlsxReaderWriterTests 0x0000000114aee00f -[BRAContentTypes addContentTypeForExtension:] + 159 4 XlsxReaderWriterTests 0x0000000114b10778 -[BRAOfficeDocumentPackage save] + 2424 5 XlsxReaderWriterTests 0x0000000114b10b23 -[BRAOfficeDocumentPackage saveAs:] + 339 6 XlsxReaderWriterTests 0x0000000114ad2456 -[BRAXlsxReaderWriterTests testUDB01] + 406