# gpui: Avoid dereferencing null pointer \(\#30579\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b2fc4064c0bfe45435dfc8a54a838d3470446c75

Requested commit: b2fc4064c0bfe45435dfc8a54a838d3470446c75

Commit: b2fc4064c0bfe45435dfc8a54a838d3470446c75

Tree: ee8cb9dfbd7cc651a473364f1045c460f0f1ff44

Author: CharlesChen0823

Committer: GitHub

## Message

```
gpui: Avoid dereferencing null pointer (#30579)

as
[comments](https://github.com/zed-industries/zed/pull/24545#issuecomment-2872833658),
I really don't known why, But IMO, add this code is not harm.

If you think this is not necessary, can close.

Release Notes:

- N/A
```

## Parents

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

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