fix nil endpoint in service class
Merge pull request #1 from wilreichert/master

fix nil endpoint in service class