You do have some misconceptions.
- "uninitialized" doesn't mean "initialized to NULL". Assigning NULL would be a initialization.
- you've got a reference to a pointer. The reference may be valid, but that says nothing of the pointer. The value stored in the pointer may be NULL.
- the message is probably a warning, not an error (or if it is an error, you may be able to supress it)
Finally, for a better guess, you ought to provide enough code to reproduce your issue.