Nil Pointer Dereference High

Dereferencing null or uninitialized pointers leads to nil pointer exceptions and crashes at runtime. Pointers should always be checked for nil before dereferencing to access memory. Return values from functions providing pointers should be validated and potential nil values handled properly. Performing nil checks helps prevent unexpected panics when accessing memory through null pointers.

Detector ID
go/nil-pointer-dereference@v1.0
Category
Common Weakness Enumeration (CWE) external icon