Revision: 29607
http://sourceforge.net/p/bibdesk/svn/29607
Author: hofman
Date: 2025-09-19 14:45:43 +0000 (Fri, 19 Sep 2025)
Log Message:
-----------
make sure data passed is not nil
Modified Paths:
--------------
trunk/bibdesk/BDSKBibDeskProtocol.m
Modified: trunk/bibdesk/BDSKBibDeskProtocol.m
===================================================================
--- trunk/bibdesk/BDSKBibDeskProtocol.m 2025-09-19 14:36:42 UTC (rev 29606)
+++ trunk/bibdesk/BDSKBibDeskProtocol.m 2025-09-19 14:45:43 UTC (rev 29607)
@@ -73,7 +73,7 @@
id<NSURLProtocolClient> client = [self client];
NSURLResponse *response = [[NSURLResponse alloc] initWithURL:[[self
request] URL] MIMEType:MIMEType expectedContentLength:[data length]
textEncodingName:[MIMEType isEqualToString:@"text/html"] ? @"utf-8" : nil];
[client URLProtocol:self didReceiveResponse:response
cacheStoragePolicy:cached ? NSURLCacheStorageAllowed :
NSURLCacheStorageNotAllowed];
- [client URLProtocol:self didLoadData:data];
+ [client URLProtocol:self didLoadData:data ?: [NSData data]];
[client URLProtocolDidFinishLoading:self];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit