Android Google Plus在无网络和重启中共享问题

Android Google Plus在无网络和重启中共享问题,android,google-plus,google-play-services,Android,Google Plus,Google Play Services,当我重新启动android设备或在通过Google Plus共享任何帖子时关闭网络时,Google Plus将强制关闭 Uncaught exception in background thread Thread[IntentService[PicasaSyncConnectivityAsync],5,main] java.lang.NullPointerException at cit.a(ProGuard:258) at cit.<init>(ProGua

当我重新启动android设备或在通过Google Plus共享任何帖子时关闭网络时,Google Plus将强制关闭

Uncaught exception in background thread Thread[IntentService[PicasaSyncConnectivityAsync],5,main]
    java.lang.NullPointerException
    at cit.a(ProGuard:258)
    at cit.<init>(ProGuard:198)
    at cit.a(ProGuard:189)
    at com.google.android.picasasync.ConnectivityReceiver$AsyncService.onHandleIntent(ProGuard:38)
    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.os.HandlerThread.run(HandlerThread.java:60)
FATAL EXCEPTION: IntentService[PicasaSyncConnectivityAsync]
    java.lang.NullPointerException
    at cit.a(ProGuard:258)
    at cit.<init>(ProGuard:198)
    at cit.a(ProGuard:189)
    at com.google.android.picasasync.ConnectivityReceiver$AsyncService.onHandleIntent(ProGuard:38)
    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.os.HandlerThread.run(HandlerThread.java:60)
因此,我尝试捕获空指针异常

@Override
public void onConnectionFailed(ConnectionResult result) {
     if (!mGooglePlusIntentInProgress && result != null && result.hasResolution()) {
            try {
              mIntentInProgress = true;
              result.startResolutionForResult(getActivity(), ShareHelper.GOOGLE_PLUS_SIGN_IN);
            } catch (SendIntentException e) {
              // The intent was canceled before it was sent.  Return to the default
              // state and attempt to connect to get an updated ConnectionResult.
              mIntentInProgress = false;
              mGoogleApiClient.connect();
            } catch (NullPointerException e) {
                  Log.e(LOG_TAG, "Exception is : " + e.getMessage());
            }
     }
}

即使在捕捉到异常之后,Google plus中也存在强制关闭。这是google plus的问题吗

您使用的是最新版本的Google Play服务吗?是的。这是Google plus应用程序问题。在低版本设备(2.3.3版本)中,当我安装Google plus时,总是会产生这个问题。
@Override
public void onConnectionFailed(ConnectionResult result) {
     if (!mGooglePlusIntentInProgress && result != null && result.hasResolution()) {
            try {
              mIntentInProgress = true;
              result.startResolutionForResult(getActivity(), ShareHelper.GOOGLE_PLUS_SIGN_IN);
            } catch (SendIntentException e) {
              // The intent was canceled before it was sent.  Return to the default
              // state and attempt to connect to get an updated ConnectionResult.
              mIntentInProgress = false;
              mGoogleApiClient.connect();
            } catch (NullPointerException e) {
                  Log.e(LOG_TAG, "Exception is : " + e.getMessage());
            }
     }
}