Revision: 16746
          http://sourceforge.net/p/skim-app/code/16746
Author:   hofman
Date:     2026-10-29 17:50:55 +0000 (Thu, 29 Oct 2026)
Log Message:
-----------
check for nil before checking equality

Modified Paths:
--------------
    trunk/SKAlias.m

Modified: trunk/SKAlias.m
===================================================================
--- trunk/SKAlias.m     2026-10-29 17:38:05 UTC (rev 16745)
+++ trunk/SKAlias.m     2026-10-29 17:50:55 UTC (rev 16746)
@@ -210,11 +210,11 @@
                     return NO;
                 NSString *volumeUUID = [rsrcValues 
objectForKey:NSURLVolumeUUIDStringKey];
                 NSString *myVolumeUUID = [myRsrcValues 
objectForKey:NSURLVolumeUUIDStringKey];
-                if ([volumeUUID isEqualToString:myVolumeUUID]) {
+                if (volumeUUID && myVolumeUUID) {
+                    if ([volumeUUID isEqualToString:myVolumeUUID] == NO)
+                        return NO;
                     [self updateWithURL:fileURL];
                     return YES;
-                } else if (volumeUUID && myVolumeUUID) {
-                    return NO;
                 }
             }
         }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to