From 3df9eae4ed4aa8d21293e624c0beca069e77bdea Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 7 Mar 2010 22:27:48 +0000 Subject: - Add a check for valid columns - this addresses http://log.sequelpro.com/view/25 --- Source/CustomQuery.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index e3d26d74..2992d373 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1679,6 +1679,7 @@ // Prevent sorting while a query is running if ([tableDocumentInstance isWorking]) return; + if (!cqColumnDefinition || ![cqColumnDefinition count]) return; NSMutableString *queryString = [NSMutableString stringWithString:lastExecutedQuery]; -- cgit v1.2.3