# macos: Fix panic when \`NSWindow::screen\` returns \`nil\` \(\#38524\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4e316c683bc31794833ce64a706b18319371f72f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4e316c683bc31794833ce64a706b18319371f72f

Requested commit: 4e316c683bc31794833ce64a706b18319371f72f

Commit: 4e316c683bc31794833ce64a706b18319371f72f

Tree: c19931c463302d3ae93008bf14222dd772de6287

Author: Ben Kunkle

Committer: GitHub

## Message

```
macos: Fix panic when `NSWindow::screen` returns `nil` (#38524)

Closes #ISSUE

Release Notes:

- mac: Fixed an issue where Zed would panic if the workspace window was
previously off screen
```

## Parents

- [1afbfcb832496061d77c50280953e669dbdbcfc0](https://git.cafe/gitcafe/zed/commit/1afbfcb832496061d77c50280953e669dbdbcfc0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4e316c683bc31794833ce64a706b18319371f72f?format=markdown)
