Revision: 27287
          http://sourceforge.net/p/bibdesk/svn/27287
Author:   hofman
Date:     2022-03-09 09:41:57 +0000 (Wed, 09 Mar 2022)
Log Message:
-----------
check for valid pboard when providing data

Modified Paths:
--------------
    trunk/bibdesk/BDSKItemPasteboardHelper.m

Modified: trunk/bibdesk/BDSKItemPasteboardHelper.m
===================================================================
--- trunk/bibdesk/BDSKItemPasteboardHelper.m    2022-03-09 07:30:16 UTC (rev 
27286)
+++ trunk/bibdesk/BDSKItemPasteboardHelper.m    2022-03-09 09:41:57 UTC (rev 
27287)
@@ -158,7 +158,7 @@
     
     NSData *data = nil;
     NSString *string = nil;
-    NSMutableDictionary *dict = [promisedPboardTypes objectForKey:[pboard 
name]];
+    NSMutableDictionary *dict = [self pasteboardIsValid:pboard] ? 
[promisedPboardTypes objectForKey:[pboard name]] : nil;
     NSArray *items = [dict objectForKey:ITEMS_KEY];
     
     if ([type isEqualToString:BDSKPasteboardTypePublications]) {

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

Reply via email to