ashusingh1 / npr-android-app

Automatically exported from code.google.com/p/npr-android-app
0 stars 0 forks source link

NewsStoryActivity wont open and the app crashes. #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I was testing the source code and when I touch the top stories list on the 
main page. The story doesnt load and the app just crashes.
2. If I long press on the list the audio plays but if i touch anything in the 
list the app just crashes.
3. The error I get in the eclipse console is a null pointer exception.

What is the expected output? What do you see instead?
Would be great if you could fix the problem with the source code.

What version of the product are you using? On what operating system?
2.4 version of the app. Android 4.0.3.

Please provide any additional information below.
I have tried changing the android version and it doesn't make any difference. I 
downloaded the app from google play and it works without problems. 

LogCat Output for the problem:
09-25 03:16:38.696: D/org.npr.android.news.NewsStoryActivity(7847): Got the 
following id's: 
161700525,161691311,161691083,161706741,161687256,161616073,161695739,161708572,
161701420,161693192
09-25 03:16:38.746: D/dalvikvm(7847): GC_CONCURRENT freed 638K, 19% free 
9926K/12167K, paused 7ms+5ms
09-25 03:16:38.796: D/dalvikvm(7847): GC_FOR_ALLOC freed 32K, 19% free 
9903K/12167K, paused 28ms
09-25 03:16:38.796: I/dalvikvm-heap(7847): Grow heap (frag case) to 11.273MB 
for 1639696-byte allocation
09-25 03:16:38.836: D/dalvikvm(7847): GC_FOR_ALLOC freed <1K, 17% free 
11503K/13831K, paused 27ms
09-25 03:16:38.916: D/dalvikvm(7847): GC_CONCURRENT freed 13K, 17% free 
11521K/13831K, paused 5ms+5ms
09-25 03:16:39.056: D/AndroidRuntime(7847): Shutting down VM
09-25 03:16:39.056: W/dalvikvm(7847): threadid=1: thread exiting with uncaught 
exception (group=0x2b543210)
09-25 03:16:39.136: E/AndroidRuntime(7847): FATAL EXCEPTION: main
09-25 03:16:39.136: E/AndroidRuntime(7847): java.lang.RuntimeException: Unable 
to start activity 
ComponentInfo{org.npr.android.news/org.npr.android.news.NewsStoryActivity}: 
java.lang.NullPointerException
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1967)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
android.app.ActivityThread.access$600(ActivityThread.java:127)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
android.os.Looper.loop(Looper.java:137)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
android.app.ActivityThread.main(ActivityThread.java:4441)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
java.lang.reflect.Method.invokeNative(Native Method)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
java.lang.reflect.Method.invoke(Method.java:511)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
dalvik.system.NativeStart.main(Native Method)
09-25 03:16:39.136: E/AndroidRuntime(7847): Caused by: 
java.lang.NullPointerException
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
org.npr.android.news.NewsStoryActivity.loadStory(NewsStoryActivity.java:285)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
org.npr.android.news.NewsStoryActivity.layoutStory(NewsStoryActivity.java:193)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
org.npr.android.news.NewsStoryActivity.onCreate(NewsStoryActivity.java:130)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
android.app.Activity.performCreate(Activity.java:4465)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
09-25 03:16:39.136: E/AndroidRuntime(7847):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931)
09-25 03:16:39.136: E/AndroidRuntime(7847):     ... 11 more

Another problem:
Npr_test doesnt work:
I get this error: NPR_Test is missing required java project file
The project cannot be built until the path errors are resolved.

Original issue reported on code.google.com by nasserpr...@gmail.com on 25 Sep 2012 at 2:18

GoogleCodeExporter commented 9 years ago
This could be due to a number of things. We've include some new dependencies in 
the code like ActionBarSherlock, for example. Do you think this could be the 
problem?

Original comment by jpenn...@gmail.com on 17 Oct 2012 at 10:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
No more input on this issue.

Original comment by jpenn...@gmail.com on 2 Jan 2013 at 3:42