You can't return null by reference, just let the function fail with null...

... naturally