summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <mulk@minimulk.mst-plus>2008-08-28 18:52:47 +0200
committerMatthias Benkard <mulk@minimulk.mst-plus>2008-08-28 18:52:47 +0200
commit8bae5884d857cb7c762f7859b68d36758c1200ac (patch)
treed544af0379f3a0c18084cf8a37234495e89dbc27
parent810f69d41261d94d99bd0bec78415065753cee5f (diff)
Listener: Evaluate fixnums without crashing.
-rw-r--r--MLKListenerController.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/MLKListenerController.m b/MLKListenerController.m
index f472448..ef46ff8 100644
--- a/MLKListenerController.m
+++ b/MLKListenerController.m
@@ -92,7 +92,7 @@
[NSThread detachNewThreadSelector:@selector(evalObject:)
toTarget:self
- withObject:object];
+ withObject:nullify(object)];
}
- (void)evalObject:(id)object
@@ -101,6 +101,8 @@
NSDictionary *attrs;
NSMutableAttributedString *text = [outputTextView textStorage];
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
+ object = denullify(object);
[statusText setStringValue:@"Compiling and executing."];
NS_DURING