Debugging API NULL calls