Hello ,
I would suggest surrounding anything that refers to these pointers with:
if(pointer)
{
...
}
else
{
*print string here saying that pointer is null*
}
This will avoid problems with referencing a null pointer, as it will fail the if statement if the pointer is null.