Better test with if(C1) that the pointer is not 0 before you do something with it.