Debugging error with API Wrapper on NULL data

Debugging error with API Wrapper on NULL data