Revision: 28460
          http://sourceforge.net/p/bibdesk/svn/28460
Author:   hofman
Date:     2023-11-26 09:26:04 +0000 (Sun, 26 Nov 2023)
Log Message:
-----------
handle non-nil empty month string properly

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

Modified: trunk/bibdesk/NSDate_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSDate_BDSKExtensions.m       2023-11-20 22:59:42 UTC (rev 
28459)
+++ trunk/bibdesk/NSDate_BDSKExtensions.m       2023-11-26 09:26:04 UTC (rev 
28460)
@@ -108,6 +108,8 @@
             monthString = [monthString substringWithRange:NSMakeRange(start, 
end - start)];
     }
     NSInteger month = 0;
+    if ([NSString isEmptyString:monthString])
+        return 0;
     if ([monthString length] < 3 && [[NSCharacterSet decimalDigitCharacterSet] 
characterIsMember:[monthString characterAtIndex:0]]) {
         month = [monthString integerValue];
     } else {

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

Reply via email to