aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPWindowController.m')
-rw-r--r--Source/SPWindowController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m
index 5f8e34cd..0cfe9e8e 100644
--- a/Source/SPWindowController.m
+++ b/Source/SPWindowController.m
@@ -654,8 +654,8 @@
* or the selected table document supports the selector.
*/
- (BOOL) respondsToSelector:(SEL)theSelector
-{
- return ([super respondsToSelector:theSelector] || [selectedTableDocument respondsToSelector:theSelector]);
+{
+ return ([super respondsToSelector:theSelector] || (selectedTableDocument && [selectedTableDocument respondsToSelector:theSelector]));
}
/**