Beiträge von DavidRei

    Hallo,
    folgendes Probelm. Ich bekomme während der Laufzeit meiner App eine NullPointerException. Und zwar immer dann wenn ich eine meiner ListViews mit einem String Array füllen will.



    08-18 16:43:40.789 11579-11579/com.seminararbeit.gewerke_app E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: com.seminararbeit.gewerke_app, PID: 11579
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
    at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:394)
    at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362)
    at android.widget.AbsListView.obtainView(AbsListView.java:2842)
    at android.widget.ListView.measureHeightOfChildren(ListView.java:1290)
    at android.widget.ListView.onMeasure(ListView.java:1202)
    at android.view.View.measure(View.java:18417)
    at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)
    at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)
    at android.view.View.measure(View.java:18417)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
    at android.support.v7.internal.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:124)
    at android.view.View.measure(View.java:18417)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)
    at android.support.v7.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:444)
    at android.view.View.measure(View.java:18417)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
    at android.view.View.measure(View.java:18417)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)
    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1835)
    at android.widget.LinearLayout.measureVertical(LinearLayout.java:725)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:616)
    at android.view.View.measure(View.java:18417)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5801)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2881)
    at android.view.View.measure(View.java:18417)
    at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2237)
    at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1295)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1537)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1180)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6558)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777)
    at android.view.Choreographer.doCallbacks(Choreographer.java:590)
    at android.view.Choreographer.doFrame(Choreographer.java:560)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5832)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)



    Betreffende Klassen:








    Vielen Dank schonmal im Voraus :)