From 18a68272f98b4a7460a1b5c91d21a5e6de6b8f9f Mon Sep 17 00:00:00 2001 From: bamse16 Date: Tue, 18 Sep 2012 20:59:10 +0000 Subject: Issue 1462: Right click in custom filter editor causes exception --- Source/SPContentFilterManager.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/SPContentFilterManager.m b/Source/SPContentFilterManager.m index 4bfb399e..cf12ebe0 100644 --- a/Source/SPContentFilterManager.m +++ b/Source/SPContentFilterManager.m @@ -469,8 +469,8 @@ [resultingClauseLabel setHidden:!enable]; [resultingClauseContentLabel setHidden:!enable]; [insertPlaceholderButton setEnabled:enable]; - - return ([[contentFilters objectAtIndex:rowIndex] objectForKey:@"headerOfFileURL"]) ? NO : YES; + + return (rowIndex >= 0 && [[contentFilters objectAtIndex:rowIndex] objectForKey:@"headerOfFileURL"]) ? NO : YES; } /** -- cgit v1.2.3