Ensure data buffer variable is defined