let me quote tdf bugzilla quip to you checking  if  this is completely brain damaged  if you want to ask questions like  do i exist then practise philosophy not crap   on a more serious note  such check is useless this  will never be null in a member function  or to put it differently  the check itself is not a problem  calling the method on a null object pointer is  so please fix the calling code 