Revision: 27848
          http://sourceforge.net/p/bibdesk/svn/27848
Author:   hofman
Date:     2022-08-29 08:51:16 +0000 (Mon, 29 Aug 2022)
Log Message:
-----------
make sure password is not nil

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

Modified: trunk/bibdesk/BibPref_Sharing.m
===================================================================
--- trunk/bibdesk/BibPref_Sharing.m     2022-08-28 06:30:18 UTC (rev 27847)
+++ trunk/bibdesk/BibPref_Sharing.m     2022-08-29 08:51:16 UTC (rev 27848)
@@ -80,7 +80,7 @@
 }
 
 - (void)setPassword:(NSString *)password {
-    if ([BDSKPasswordController addOrModifyPassword:password 
forKeychainService:BDSKServiceNameForKeychain account:nil name:nil])
+    if ([BDSKPasswordController addOrModifyPassword:password ?: @"" 
forKeychainService:BDSKServiceNameForKeychain account:nil name:nil])
         [[NSNotificationCenter defaultCenter] 
postNotificationName:BDSKSharingPasswordChangedNotification object:nil];
 }
 

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