A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.NULL pointer dereference issues can occur through a number of flaws, including race conditions, and simple programming omissions.