Be consistent: if you check for NULL in one place, you need to do it everywhere. Found by Coverity.
Be consistent: if you check for NULL in one place, you need to do it everywhere.
Found by Coverity.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb