[ONE Android Development] Cholerabob:
This is what i get

java.lang.NullPointerException: Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a null object reference

at android.text.Layout.getDesiredWidth(Layout.java:125)

at android.widget.Switch.makeLayout(Switch.java:892)

at android.widget.Switch.onMeasure(Switch.java:811)

at android.view.View.measure(View.java:18797)

at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)

at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)

at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1112)

at android.widget.LinearLayout.onMeasure(LinearLayout.java:632)

at android.view.View.measure(View.java:18797)

at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)

at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)

at android.widget.LinearLayout.measureVertical(LinearLayout.java:748)

at android.widget.LinearLayout.onMeasure(LinearLayout.java:630)

at android.view.View.measure(View.java:18797)

at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)

at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)

at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1112)

at android.widget.LinearLayout.onMeasure(LinearLayout.java:632)

at android.view.View.measure(View.java:18797)

at android.widget.ListView.setupChild(ListView.java:1958)

at android.widget.ListView.makeAndAddView(ListView.java:1879)

at android.widget.ListView.fillDown(ListView.java:702)

at android.widget.ListView.fillFromTop(ListView.java:763)

at android.widget.ListView.layoutChildren(ListView.java:1685)

at android.widget.AbsListView.onLayout(AbsListView.java:2148)

at android.view.View.layout(View.java:16639)

at android.view.ViewGroup.layout(ViewGroup.java:5437)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)

at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)

at android.view.View.layout(View.java:16639)

at android.view.ViewGroup.layout(ViewGroup.java:5437)

at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)

at android.widget.FrameLayout.onLayout(FrameLayout.java:273)

at android.view.View.layout(View.java:16639)

at android.view.ViewGroup.layout(ViewGroup.java:5437)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)

at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)

at android.view.View.layout(View.java:16639)

at android.view.ViewGroup.layout(ViewGroup.java:5437)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)

at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)

at android.view.View.layout(View.java:16639)

at android.view.ViewGroup.layout(ViewGroup.java:5437)

at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)

at android.widget.FrameLayout.onLayout(FrameLayout.java:273)

at android.view.View.layout(View.java:16639)

at android.view.ViewGroup.layout(ViewGroup.java:5437)

at com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:493)

at android.view.View.layout(View.java:16639)

at android.view.ViewGroup.layout(ViewGroup.java:5437)

at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)

at android.widget.FrameLayout.onLayout(FrameLayout.java:273)

at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2934)

at android.view.View.layout(View.java:16639)

at android.view.ViewGroup.layout(ViewGroup.java:5437)

at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2171)

at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1931)

at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)

at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)

at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)

at android.view.Choreographer.doCallbacks(Choreographer.java:670)

at android.view.Choreographer.doFrame(Choreographer.java:606)

at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)

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:5466)

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)