Use <ptr> == NULL instead of !<ptr>