Revision: 12129
          http://sourceforge.net/p/skim-app/code/12129
Author:   hofman
Date:     2021-02-26 16:59:16 +0000 (Fri, 26 Feb 2021)
Log Message:
-----------
Avoid exception for empty key in info table

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

Modified: trunk/SKInfoWindowController.m
===================================================================
--- trunk/SKInfoWindowController.m      2021-02-26 16:38:27 UTC (rev 12128)
+++ trunk/SKInfoWindowController.m      2021-02-26 16:59:16 UTC (rev 12129)
@@ -162,7 +162,7 @@
         NSCell *cell = [tc dataCell];
         NSUInteger row, rowMax = [tv numberOfRows];
         for (row = 0; row < rowMax; row++) {
-            [cell setStringValue:[self tableView:tv 
objectValueForTableColumn:tc row:row]];
+            [cell setStringValue:[self tableView:tv 
objectValueForTableColumn:tc row:row] ?: @""];
             width = fmax(width, ceil([cell cellSize].width));
         }
     }

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