Revision: 26784 http://sourceforge.net/p/bibdesk/svn/26784 Author: hofman Date: 2021-08-30 21:40:00 +0000 (Mon, 30 Aug 2021) Log Message: ----------- Make sure we don't crash on nil URL
Modified Paths: -------------- trunk/bibdesk/BDSKWebView.m Modified: trunk/bibdesk/BDSKWebView.m =================================================================== --- trunk/bibdesk/BDSKWebView.m 2021-08-30 21:38:52 UTC (rev 26783) +++ trunk/bibdesk/BDSKWebView.m 2021-08-30 21:40:00 UTC (rev 26784) @@ -281,7 +281,9 @@ } + (NSImage *)faviconForURLString:(NSString *)URLString { - return [webIcons valueForKey:URLString]; + if ([NSString isEmptyString:URLString]) + return nil; + return [webIcons objectForKey:URLString]; } @end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit