Note that there are some explanatory texts on larger screens.

plurals
  1. PONullPointerException while Loading and Displaying JSON content into a listview
    text
    copied!<p>I am attempting to load JSON content into a listview containing image and text but I'm getting a <code>NullPointerException</code>' in line 154 i.e <code>lv1.setAdapter(efficienadapter);</code> in Actualities.class .</p> <p>I don't know if its because the <code>postlist is null or an error in my code.</code></p> <p>someone can help me please </p> <p>My Actualites class android.widget.TabHost.setCurrentTab(TabHost.java:329)</p> <pre><code>01-24 13:03:44.741: E/AndroidRuntime(4357): at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:133) 01-24 13:03:44.741: E/AndroidRuntime(4357): at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:456) 01-24 13:03:44.741: E/AndroidRuntime(4357): at android.view.View.performClick(View.java:2538) 01-24 13:03:44.741: E/AndroidRuntime(4357): at android.view.View$PerformClick.run(View.java:9152) 01-24 13:03:44.741: E/AndroidRuntime(4357): at android.os.Handler.handleCallback(Handler.java:587) 01-24 13:03:44.741: E/AndroidRuntime(4357): at android.os.Handler.dispatchMessage(Handler.java:92) 01-24 13:03:44.741: E/AndroidRuntime(4357): at android.os.Looper.loop(Looper.java:130) 01-24 13:03:44.741: E/AndroidRuntime(4357): at android.app.ActivityThread.main(ActivityThread.java:3687) 01-24 13:03:44.741: E/AndroidRuntime(4357): at java.lang.reflect.Method.invokeNative(Native Method) 01-24 13:03:44.741: E/AndroidRuntime(4357): at java.lang.reflect.Method.invoke(Method.java:507) 01-24 13:03:44.741: E/AndroidRuntime(4357): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842) 01-24 13:03:44.741: E/AndroidRuntime(4357): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 01-24 13:03:44.741: E/AndroidRuntime(4357): at dalvik.system.NativeStart.main(Native Method) 01-24 13:03:44.741: E/AndroidRuntime(4357): Caused by: java.lang.NullPointerException 01-24 13:03:44.741: E/AndroidRuntime(4357): at fr.dtweb.gpf.Actualites.onCreate(Actualites.java:154) 01-24 13:03:44.741: E/AndroidRuntime(4357): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 01-24 13:03:44.741: E/AndroidRuntime(4357): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615) 01-24 13:03:44.741: E/AndroidRuntime(4357): ... 18 more </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload