aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m1
1 files changed, 1 insertions, 0 deletions
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];