Android 谷歌+;SDK getCurrentPerson大约有5%的时间为空

Android 谷歌+;SDK getCurrentPerson大约有5%的时间为空,android,google-plus,Android,Google Plus,每当用户连接时,都会调用onConnected方法,在这个方法中,我会尝试按照文档所述获取用户数据- @Override public void onConnected() { ... if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) { Person currentPerson = Plus.PeopleApi.getCurrentPerson(mGoogleApiClient); String

每当用户连接时,都会调用onConnected方法,在这个方法中,我会尝试按照文档所述获取用户数据-

@Override
public void onConnected() {
  ...
  if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {
    Person currentPerson = Plus.PeopleApi.getCurrentPerson(mGoogleApiClient);
    String personName = currentPerson.getDisplayName();
    String personPhoto = currentPerson.getImage();
    String personGooglePlusProfile = currentPerson.getUrl();
  }
}
它大约95%的时间工作,但5%的时间
Plus.PeopleApi.getCurrentPerson(mGoogleApiClient)
返回null。
我找不到任何关于何时以及为什么它可以为空的文档。此外,对于同一用户,该值在某一点上可能为null,在另一点上可能返回person。当这个人是空的时候,任何关于我为什么和应该做什么的线索都会被祝福。谢谢

在剩下的5%上,调用前返回的值是什么?不知道,我需要等到下一个版本发布时再检查,您请求的范围是什么?范围是登录和配置文件您在logcat中是否看到任何错误?