JakeWharton/ActionBarSherlock — Issue #168: NullPointerException in removeViewInternal
Author: eburnette
Created: 2012-01-05 22:26:32+00:00
State: open

In 4.0 beta, start up the FeatureToggles demo, select Navigation Mode: Tabs, and then press Tab Display: Remove 4 times.

01-05 17:24:00.670: E/AndroidRuntime(7062): java.lang.NullPointerException
01-05 17:24:00.670: E/AndroidRuntime(7062):	at android.view.ViewGroup.removeViewInternal(ViewGroup.java:3249)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at android.view.ViewGroup.removeViewAt(ViewGroup.java:3217)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at com.actionbarsherlock.internal.widget.ScrollingTabContainerView.removeTabAt(ScrollingTabContainerView.java:335)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at com.actionbarsherlock.internal.app.ActionBarImpl.removeTabAt(ActionBarImpl.java:488)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at com.actionbarsherlock.sample.demos.FeatureToggles$26.onClick(FeatureToggles.java:247)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at android.view.View.performClick(View.java:3122)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at android.view.View$PerformClick.run(View.java:11940)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at android.os.Handler.handleCallback(Handler.java:587)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at android.os.Handler.dispatchMessage(Handler.java:92)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at android.os.Looper.loop(Looper.java:132)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at android.app.ActivityThread.main(ActivityThread.java:4028)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at java.lang.reflect.Method.invokeNative(Native Method)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at java.lang.reflect.Method.invoke(Method.java:491)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
01-05 17:24:00.670: E/AndroidRuntime(7062):	at dalvik.system.NativeStart.main(Native Method)
01-05 17:24:00.670: W/ActivityManager(286): Force finishing activity com.actionbarsherlock.sample.demos/.FeatureToggles