# TypedValue: do not crash when failing to dereference pointer · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/0182b7242e216ea6eabf465e32b7da60ad32ee2d)

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

Visibility: public

Requested revision: 0182b7242e216ea6eabf465e32b7da60ad32ee2d

Requested commit: 0182b7242e216ea6eabf465e32b7da60ad32ee2d

Commit: 0182b7242e216ea6eabf465e32b7da60ad32ee2d

Tree: d286e0ce25374525e8106ecbe93de25e325e1b47

Author: mlugg

Committer: Andrew Kelley

## Message

```
TypedValue: do not crash when failing to dereference pointer

All of the logic in `Value.elemValue` is quite questionable, but
printing an error is definitely better than crashing. Notably, this
should stop us from hitting crashes when dumping AIR.

```

## Parents

- [2da62a710652571cefe81e958e86d9c9ef74c747](https://git.cafe/gitcafe/zig/commit/2da62a710652571cefe81e958e86d9c9ef74c747?format=markdown)

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