Closed abbeycode closed 5 years ago
This line can throw an NSFileHandleOperationException exception, which is a documented eventuality when the file can't be read:
NSFileHandleOperationException
NSData *fileData = [handle readDataOfLength:4];
Instead of crashing, log the exception and return NO.
NO
This line can throw an
NSFileHandleOperationException
exception, which is a documented eventuality when the file can't be read:Instead of crashing, log the exception and return
NO
.