CheckNullPointer: use library instead of hard coded info