An exception is a symptom, not a diagnosis: trace from the throw site back to the root trigger, with the runtime checklist on the table.
Overview
The exception message tells you where it hurt — not why. This setup runs the runtime error strategy on a production-adjacent NullReferenceException: locate the exact failure point and the state at that moment, trace the execution path backward from the throw to the trigger, and distinguish the proximate cause (what threw) from the root trigger (what made it throw) — with the runtime checklist covering null paths, dependency failures, invalid state, configuration differences, environment drift, and unchecked input contracts.
Workflow
1
Paste the exception raw
Message, stack, and the log lines around it — the detector recognizes them and the contract carries them verbatim.
2
Demand the trigger, not the site
Line 142 threw; the investigation asks what reached line 142 in that state.
3
Validate before patching
A null check at the throw site is a symptom fix — the contract labels it as a temporary mitigation unless the trigger is addressed.
Why This Works
Throw-site vs cause-site framing redirects effort to where the bug actually is
The runtime checklist covers the unglamorous causes (config, drift) that stack traces hide
Symptom-fix labeling stops null checks from masquerading as repairs
Best for
Exceptions that "can't happen" but did
Errors that appear in one environment and not another
Developers handed a stack trace and a deadline
Not for
Errors with no exception — wrong results are the functional-bug strategy
AI output format errors — that's the AI Output Validator
Use cases
Working a NullReferenceException back to its real cause
Separating what threw from what made it throw
Checking environment drift before blaming the code
Tip: Save time by exploring related resources and tools that integrate with this workflow.
Found a bug, have a suggestion, or want to report something confusing? Send a short note.
Cookie preferences
NewPrompt uses optional Google Analytics cookies to understand site usage and improve the tools.
The site works normally if you decline analytics cookies.
Read more in our Cookie Policy.