Why Fixing the Error Isn't the Same as Fixing the Bug

A bug appears in production.

You find the line that crashes.

You add a null check.

The error disappears.