2013-12-20 64 views
-3

你好我有我的代碼問題,但我不知道它爲什麼顯示我的錯誤。Android:日誌貓錯誤

FATAL EXCEPTION: main 
Process: com.musiclist.activity, PID: 6616 
java.lang.NullPointerException 
    at android.widget.AbsListView.obtainView(AbsListView.java:2265) 
    at android.widget.ListView.measureHeightOfChildren(ListView.java:1263) 
    at android.widget.ListView.onMeasure(ListView.java:1175) 
    at android.view.View.measure(View.java:16497) 
    at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:719) 
    at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:455) 
    at android.view.View.measure(View.java:16497) 
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125) 
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) 
    at android.view.View.measure(View.java:16497) 
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125) 
    at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:327) 
    at android.view.View.measure(View.java:16497) 
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125) 
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) 
    at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2291) 
    at android.view.View.measure(View.java:16497) 
    at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1916) 
    at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1113) 
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1295) 
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000) 
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5670) 
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) 
    at android.view.Choreographer.doCallbacks(Choreographer.java:574) 
    at android.view.Choreographer.doFrame(Choreographer.java:544) 
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) 
    at android.os.Handler.handleCallback(Handler.java:733) 
    at android.os.Handler.dispatchMessage(Handler.java:95) 
    at android.os.Looper.loop(Looper.java:136) 
    at android.app.ActivityThread.main(ActivityThread.java:5017) 
    at java.lang.reflect.Method.invokeNative(Native Method) 
    at java.lang.reflect.Method.invoke(Method.java:515) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
    at dalvik.system.NativeStart.main(Native Method) 
+3

同在這裏:http://stackoverflow.com/questions/20706454/log-cat-error-android-i-dont-understand-this-error-can-you-help -me使用**代碼來更新您的問題**以解決此問題,我們可以爲您提供幫助。 – Fllo

+2

重複提問* *您自己的*,並且其中一個已關閉。修改你的問題,然後回來。 –

回答

0

問題沒有代碼,因此有猜測一個答案:你提供ListViewArrayAdapternull作爲項目陣列。