Check pointer after addShape called.