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 robinleathal
, 1 year ago
Attempt to invoke virtual method 'int android.util.SparseBooleanArray.size()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.util.SparseBooleanArray.size()' on a null object reference	at esu.uco.rawal.p4rabina.DepartmentActivity.performCall(DepartmentActivity.java:108)	at esu.uco.rawal.p4rabina.DepartmentActivity.access$100(DepartmentActivity.java:18)	at esu.uco.rawal.p4rabina.DepartmentActivity$2.onActionItemClicked(DepartmentActivity.java:85)	at com.android.internal.policy.PhoneWindow$DecorView$ActionModeCallback2Wrapper.onActionItemClicked(PhoneWindow.java:3540)	at com.android.internal.app.WindowDecorActionBar$ActionModeImpl.onMenuItemSelected(WindowDecorActionBar.java:1093)	at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761)	at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904)	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894)	at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:616)	at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141)	at android.view.View.performClick(View.java:5198)	at android.view.View$PerformClick.run(View.java:21147)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:148)	at android.app.ActivityThread.main(ActivityThread.java:5417)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)