I thought I might have to reinstall htc stock to reproduce but it happens with Miui as well.
W/System.err( 2313): java.lang.IllegalArgumentException W/System.err( 2313): at headwayEnt.a.d.a.b.<init>(SourceFile:211) W/System.err( 2313): at headwayEnt.SpaceRocket.a.a.<init>(SourceFile: 486) W/System.err( 2313): at headwayEnt.SpaceRocket.a.e.<init>(SourceFile: 120) W/System.err( 2313): at headwayEnt.SpaceRocket.a.w.w(SourceFile:726) W/System.err( 2313): at headwayEnt.SpaceRocket.SpaceRocketMainView.surfaceCreated(SourceFile: 371) E/AndroidRuntime( 2313): java.lang.NullPointerException E/AndroidRuntime( 2313): at headwayEnt.SpaceRocket.a.e.j(SourceFile: 413) E/AndroidRuntime( 2313): at headwayEnt.SpaceRocket.a.f.run(SourceFile: 174) I/ActivityManager( 145): Displayed headwayEnt.SpaceRocket/.SpaceRocketActivity: +739ms W/ActivityManager( 145): Force finishing activity headwayEnt.SpaceRocket/.SpaceRocketActivity V/network ( 2313): cmwap auto-detection is enabled D/Finsky ( 2178): [1] PageFragment.rebindViews: Page [class=DetailsFragment] loaded in [41650 ms] W/webcore ( 2313): Can't get the viewWidth after the first layout On Sep 27, 1:36 am, sebastian_bugiu <[email protected]> wrote: > Go to the android market and search for SpaceRocket and download the > free version. When you try to start the app you should get an > exception. I don't think there is an issue with my code as it works > just fine in the emulator and on other phones. After all accessing a > private static final initialized field should not yield a > NullPointerException in any circumstances... > > On Sep 27, 2:52 am, Peter Sinnott <[email protected]> wrote: > > > Tempting as it is to find fault in other peoples code almost always > > the problem is in our own (not always mind you). > > I don't know to contact HTC but even if you can there is almost no > > chance of them pushing a fix to most devices so it is best if you > > handle the null in a sensible manner and move on. That said, if you > > post the name of the app and reproduction steps I would be happy to > > try it out on my Desire. > > > On Sep 26, 10:48 pm, sebastian_bugiu > > > <[email protected]> wrote: > > > I have an application in android market that does not work on htc > > > desire and I am positive the issue is not in my code. Basically I have > > > a private static final field that is initialized to a reference to an > > > object and yet whenever I access that object from another thread it > > > throws a NullPointerException even though it is initialized. > > > > It works in the emulator but I have not tested the application on many > > > phones. But on those that I tested it works. -- You received this message because you are subscribed to the Google Groups "Android Discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/android-discuss?hl=en.
