cppbc: fixed null pointer dereference