# Fix empty nodes crash \(\#38259\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d48d6a745409a8998998ed59c28493a1aa733ebb

Requested commit: d48d6a745409a8998998ed59c28493a1aa733ebb

Commit: d48d6a745409a8998998ed59c28493a1aa733ebb

Tree: 62b2a974cab0015e46f41b11e3f0476093dc0728

Author: localcc

Committer: GitHub

## Message

```
Fix empty nodes crash (#38259)

The crash occured because we raced against the platform windowing
backend to render a frame, and if we lost the race there would be no
frame on a window that we return, which breaks most of gpui

Release Notes:

- N/A
```

## Parents

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

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