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 8968915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:31:14+00:00 2026-06-15T17:31:14+00:00

I am having an issue creating a ListView with my data. The code to

  • 0

I am having an issue creating a ListView with my data. The code to produce it is:

protected void onPostExecute(DtoProjectListItem[] result) {
    mProgressDialog.dismiss();

    // DtoProjectListItem[] Adapter for ListView
    ArrayAdapter<DtoProjectListItem> projects_adapter = new ArrayAdapter<DtoProjectListItem>(
            ProjectListActivity.this,
            R.layout.activity_project_list_item, 
            R.id.tvProjectName, 
            result
    );

    ListView lvProjects = (ListView) findViewById(R.layout.activity_project_list);
    lvProjects.setAdapter(projects_adapter);

}

The error I get is:

Shutting down VM
threadid=1: thread exiting with uncaught exception (group=0x40cad930)
FATAL EXCEPTION: main
java.lang.NullPointerException
    at org.my.cihub.ProjectListActivity$GetDataAsyncTask.onPostExecute(ProjectListActivity.java:173)
    at org.my.cihub.ProjectListActivity$GetDataAsyncTask.onPostExecute(ProjectListActivity.java:1)
    at android.os.AsyncTask.finish(AsyncTask.java:631)
    at android.os.AsyncTask.access$600(AsyncTask.java:177)
    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5039)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
12-08 20:31:03.386: I/Process(21412): Sending signal. PID: 21412 SIG: 9

Line 173 is:

lvProjects.setAdapter(projects_adapter);

Can somebody help me figure this out?

Thanks! 🙂

  • 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-15T17:31:15+00:00Added an answer on June 15, 2026 at 5:31 pm

    the problem is in this line

    ListView lvProjects = (ListView) findViewById(R.layout.activity_project_list);
    

    it should be like this

    ListView lvProjects = (ListView) findViewById(R.id.your_list_id);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an issue creating a ProgressDialog in my onCreateDialog() method. The code is
I am having an issue with creating a splice for a weighted index. I
I am creating a personnel recruitment website and am having an issue with adding
I'm having the following issue with my hibernate 3.6.10 project: org.springframework.beans.factory.BeanCreationException: Error creating bean
I'm having an issue creating my Oracle DB with schemaexport function of NHibernate. For
I am having an issue with creating and adding sales/quote_address objects to the multishipping
i'm having an issue with creating a query in oracle which doesnt seem to
I'm having an issue with an creating application shortcut on the desktop from a
I'm having an issue with Jquery deferred object. I'm creating a promise inside a
I am currently creating a one page website, however I am having an issue,

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.