From e3fff1d575aed0650d4539b3e2f7c22ae04fe041 Mon Sep 17 00:00:00 2001 From: Joachim LeBlanc Date: Fri, 10 Aug 2012 16:58:07 -0500 Subject: [PATCH] Add check for empty or nil rawData (one less error log) --- Classes/Library/TLOFileLogger.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/Library/TLOFileLogger.m b/Classes/Library/TLOFileLogger.m index 1c5c08f160..42d1894085 100755 --- a/Classes/Library/TLOFileLogger.m +++ b/Classes/Library/TLOFileLogger.m @@ -209,7 +209,9 @@ - (NSDictionary *)propertyList /* @private */ { if (self.writePlainText == NO) { NSData *rawData = [_NSFileManager() contentsAtPath:self.filename]; - + if (PointerIsEmpty(rawData) || rawData.length == 0) + return [NSDictionary dictionary]; + NSString *readError; NSDictionary *plist = [NSPropertyListSerialization propertyListFromData:rawData