added a example to show the dereference of a invalid pointer