# Nil-pointer dereference on missing map value in Go — Agent PR X-Ray

> Canonical page: https://codevetter.com/xray/go-nil-pointer

This is an adjudicated synthetic benchmark example, not a claim about an uploaded repository.

## Source

- Corpus: codevetter-public-benchmark/go-nil-pointer
- Language: go
- Category: bug
- Evidence state: benchmark_ground_truth

## Finding

- Severity: medium
- Title: nil dereference
- Summary: FindUser dereferences u.Email without checking that the map lookup returned a non-nil pointer, so a missing id causes a nil pointer dereference and a process crash.
- Source anchor: `source.go:16`

## Verification boundary

The static finding is qualified against benchmark ground truth. No exact-current executable test or audience validation is included in this example, so those stages remain unverified.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
