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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:31:52+00:00 2026-05-31T13:31:52+00:00

How do I begin to troubleshoot errors like this? I get them from time

  • 0

How do I begin to troubleshoot errors like this? I get them from time to time and I have no idea what to do with them. I thought I was getting pretty good at decoding stack traces, but this one leaves me baffled.

java.lang.NullPointerException
at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:355)
at android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
at android.widget.AbsListView.obtainView(AbsListView.java:1315)
at android.widget.ListView.makeAndAddView(ListView.java:1727)
at android.widget.ListView.fillDown(ListView.java:652)
at android.widget.ListView.fillSpecific(ListView.java:1284)
at android.widget.ListView.layoutChildren(ListView.java:1558)
at android.widget.AbsListView.onLayout(AbsListView.java:1147)
at android.view.View.layout(View.java:7035)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:7035)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1042)
at android.view.View.layout(View.java:7035)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:7035)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1045)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)

Have I uncovered an android bug? I’d include some code, but I have no idea what code to include. It could be anything.

  • 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-05-31T13:31:53+00:00Added an answer on May 31, 2026 at 1:31 pm

    Have I uncovered an android bug?

    Probably not.

    It could be anything.

    No, it cannot. The stack trace points out that there is a problem in ArrayAdapter. Either you are creating an ArrayAdapter that has an issue, or you are creating something else (e.g., an AlertDialog) that itself is creating an ArrayAdapter. There can only be so many places in your code where this occurs, and presumably there are significant portions of your code that have nothing to do with ArrayAdapter.

    Next, you can see that the exception occurs in createViewFromResource(). Just from the method name and the exception, the most likely problem should have sprung to mind: you supplied an invalid layout resource ID in the ArrayAdapter constructor.

    Note that the “invalid layout resource ID” may not be your fault. Whenever you encounter a resource-related error in Android development, clean your project (Project > Clean from the Eclipse main menu, or ant clean from the command line) and try again. If the problem goes away, life is good. If the problem persists, in this case, take a good look at your ArrayAdapter constructor.

    You are welcome to examine the source code to ArrayAdapter and createViewFromResource() if that helps. The link points to the most recent version of that class, though you can use the “Branches” tab to find one that corresponds to whatever version of Android you happen to be running. Sometimes, if you are running on hardware, the line numbers will not match, because the device manufacturer tinkered with the class, but given the method name, you can still find the general area where the problem lies. In this case, there are relatively few things that could reasonably raise a NullPointerException, and so the most likely case is still that you (or the build tools) supplied an invalid layout resource ID.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

BEGIN and END are causing syntax errors in my pretty simple script. The general
To begin with, this is the first Android app I'm writing, and I have
I begin by adding data to table events , field exceptions like this function
lets begin with the scenario: I have an ItemsControl inside a UserControl. In this
BEGIN dbms_output.put_line('Welcome to PL/SQL'); END; / I have this code in sample.sql file. How
To begin i read all resources from xml in my MergedDictionaries and now I
To begin, Ive spent several hours looking for an answer and have come CLOSE
Mysql begin generate big IO. One website have many rows in session,requests table (
To begin with, I have a database that holds map data for a game
I begin to study qt (I have qt creator, last version), so I read

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.