Skip to content
Snippets Groups Projects
Commit b92c5a93 authored by George Nachman's avatar George Nachman
Browse files

Fix bug where Applescript 'current window' would crash if there was no current...

Fix bug where Applescript 'current window' would crash if there was no current window because the _underlyingWindow would be nil.

Issue 5899
parent 3a0552d1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -11,7 +11,11 @@
@implementation iTermScriptingWindow
 
+ (instancetype)scriptingWindowWithWindow:(NSWindow *)window {
return [[[self alloc] initWithObject:window] autorelease];
if (window) {
return [[[self alloc] initWithObject:window] autorelease];
} else {
return nil;
}
}
 
- (instancetype)initWithObject:(NSWindow *)window {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment