Spaces:
Sleeping
Sleeping
File size: 612 Bytes
29fdac9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# Java NullPointerException
## Symptoms
- Stacktrace contains `NullPointerException`
- Fails during specific code paths or after deploy
- Sometimes triggered by missing config or feature flags
## Checks
- Inspect stacktrace frames to find source file and line
- Validate configuration/feature flag defaults are present
- Add guards for optional fields and log offending values
- Review recent code changes around the failing area
- Add unit tests covering null/missing data inputs
## Fix
- Add null checks and default values
- Ensure config/flags are loaded before use
- Deploy fix and monitor for recurrence
|