Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash on cancelling the File->New dialog #275

Closed
wants to merge 1 commit into from

Conversation

jdelStrother
Copy link

When I want to open a recent window, I often hit ⌘N � ⎋ without thinking about it, which causes a crash as AppKit inspects the uninitialized outError to find out why PBRepositoryDocumentController didn't create a document.

This commit fixes the crash. You now get "No document could be created." on hitting File->New, then Cancel - it appears to be impossible to silently return nil from makeUntitledDocumentOfType.

@alistairmcmillan
Copy link

Duplicate of patch #220 .

@tiennou tiennou mentioned this pull request Mar 2, 2014
@rowanj rowanj closed this in #295 Jul 27, 2014
rowanj added a commit that referenced this pull request Jul 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants