Please include your code. Do you ever assign the variable, (if you don't then it will be null). If you are injecting it, ensure you are accessing the service correctly such that the container can inject it.