문제

I recently was receiving a NullPointerException crash report in the android market with one of my apps. I was not able to recreate the bug when testing so I thought it may be specific to a device. To solve this issue I included BugSense with my latest release. BugSense has worked reporting other issues and has been very helpful, but I am still getting reports of the original error with the latest version in the Android Market but in BugSense. Does BugSense not work on some devices?

Some details about the crash:

  1. BugSense is called in my Splash Screen Activity.
  2. Splash Screen opens the Main Activity.
  3. Main Activity has an Instance of MyObject.
  4. MyObject is set when a user clicks an item in a ListView.
  5. Clicking an item in the ListView opens an AlertDialog.
  6. MyObject.getName() is called in onCreateDialog.
  7. Crash Occurs - NPE.

Error doesn't appear on BugSense Dashboard. User Comments in Android Market state "app is crashing as soon as it opens." My original thought was the user found a way to open a dialog without clicking on a list item but after seeing the user comment it appears the app is trying to access onCreateDialog before it ever needs to be called.

So my questions: How is it possible for the app to crash without BugSense reporting on it? and Why would onCreateDialog get called before the Activity ever needs it?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top