Revision: 14689
          http://sourceforge.net/p/skim-app/code/14689
Author:   hofman
Date:     2024-11-15 16:56:38 +0000 (Fri, 15 Nov 2024)
Log Message:
-----------
Don't call containsObject: with nil

Modified Paths:
--------------
    trunk/SKMainDocument.m
    trunk/SKNotesDocument.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2024-11-15 16:52:58 UTC (rev 14688)
+++ trunk/SKMainDocument.m      2024-11-15 16:56:38 UTC (rev 14689)
@@ -1970,7 +1970,7 @@
         } else if ([writableTypes containsObject:fileType] == NO) {
             normalizedType = [tm templateTypeForDisplayName:fileType];
         }
-        if ([writableTypes containsObject:normalizedType] || [tm 
fileNameExtensionForTemplateType:fileType]) {
+        if ((normalizedType && [writableTypes containsObject:normalizedType]) 
|| [tm fileNameExtensionForTemplateType:fileType]) {
             mdFlags.exportOption = option;
             NSMutableDictionary *arguments = [args mutableCopy];
             if (normalizedType) {

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2024-11-15 16:52:58 UTC (rev 14688)
+++ trunk/SKNotesDocument.m     2024-11-15 16:56:38 UTC (rev 14689)
@@ -988,7 +988,7 @@
             normalizedType = SKNotesFDFDocumentType;
         else if ([writableTypes containsObject:fileType] == NO)
             normalizedType = [tm templateTypeForDisplayName:fileType];
-        if ([writableTypes containsObject:normalizedType] || [tm 
fileNameExtensionForTemplateType:fileType]) {
+        if ((normalizedType && [writableTypes containsObject:normalizedType]) 
|| [tm fileNameExtensionForTemplateType:fileType]) {
             NSMutableDictionary *arguments = [args mutableCopy];
             if (normalizedType) {
                 fileType = normalizedType;

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