Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Aksh
, 1 year ago
Attempt to invoke virtual method 'boolean com.google.android.gms.common.api.GoogleApiClient.isConnected()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.android.gms.common.api.GoogleApiClient.isConnected()' on a null object reference	at com.myapplication.tester.BaseActivity.signOut(BaseActivity.java:190)	at com.myapplication.tester.BaseActivity.onOptionsItemSelected(BaseActivity.java:180)	at android.app.Activity.onMenuItemSelected(Activity.java:2948)	at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:406)	at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:195)	at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)	at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)	at android.support.v7.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:69)	at android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:203)	at android.support.v7.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:759)	at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:810)	at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)	at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:957)	at android.support.v7.view.menu.MenuPopup.onItemClick(MenuPopup.java:127)	at android.widget.AdapterView.performItemClick(AdapterView.java:310)