Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9192835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:01:26+00:00 2026-06-17T21:01:26+00:00

I am attempting to load JSON content into a listview containing image and text

  • 0

I am attempting to load JSON content into a listview containing image and text but I’m getting a NullPointerException‘ in line 154 i.e lv1.setAdapter(efficienadapter); in Actualities.class .

I don’t know if its because the postlist is null or an error in my code.

someone can help me please

My Actualites class
android.widget.TabHost.setCurrentTab(TabHost.java:329)

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:01:28+00:00Added an answer on June 17, 2026 at 9:01 pm

    you will need to set default value for isActusAstuce before using it . if you are accessing it from other application components then make it static as :

    public static  Boolean isActusAstuce=false;
    

    instead of

    public Boolean isActusAstuce;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently attempting to load several text files into MongoDB (they're in JSON format).
I am attempting to load from text files, queries into an MS Access Queries
I'm attempting to load google maps in an anonymous function but am getting a
I am attempting to load static navigational content into many pages on my website.
I'm attempting to load text files in to a database line by line, I
I am attempting to load some json data into a custom JQuery function. There
I'm attempting to load JSON (from php's json_encode) into a Backbone JS collection. I've
I am attempting to load some images into a very basic C++/SDL based program.
OK - I am attempting to load a JSON response (from an external file
I'm attempting to load a store catalog into MongoDb (2.2.2) using Node.js (0.8.18) and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.