当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Custom class which is supposed to return a location but returns null location

问题描述:

This question already has an answer here:

  • What is a NullPointerException, and how do I fix it?

    12 answers

网友答案:

You never set the client variable to be anything. It is only created and never assigned to a new GoogleApiClient until you set up your other stuff (from what I can tell).

分享给朋友:
您可能感兴趣的文章:
随机阅读: