Fixes: #1904 NULL cannot be passed by reference