Matching SDK version to code? NPE Bug in WebView?

by Mariano Kamp » Sun, 15 Mar 2009 18:49:47 GMT


Sponsored Links
 Hi,

   I wrote an app that, among other things,  renders feed articles  
using WebView. Now I get error reports that seem to originate in  
WebView:

-- NewsRob Version: 1.7.0/170
-- Android Version: sdk=2, release=1.1, inc=128600
-- Thread State: RUNNABLE
-- Stacktrace:
java.lang.NullPointerException
at android.webkit.CacheManager$1.run(CacheManager.java:391)
at java.lang.Thread.run(Thread.java:935)

   I've got another report with the same content, but a different  
incremental version of the sdk (126986). Probably one from the US and  
one from the UK.

   So now I would love to know why the code blows up and if there is  
anything I can do about it. And with the source files and line numbers  
I felt in good shape to so. If only I could match them to the public  
code repositories ;-(

   Finding the file was easy:
 http://android.git.kernel.org/?p=platform/frameworks/base.git ;a=tree;f=core/java/android/webkit;h=a133d1c04dede353611f23bc37d04a9ff7316b8d;hb=HEAD

   But then "history" returns the following:

 http://android.git.kernel.org/?p=platform/frameworks/base.git ;a=history;f=core/java/android/webkit/CacheManager.java;h=d12940d04f41e3f4450da79738714a6a8c7739e6;hb=HEAD
-->
2008-12-18      The Android Open...     Code drop from //branches/ 
cupcake/....@124589
2008-10-21      The Android Open...     Initial Contribution android-1.0        

   None of these seem to simply match the version information returned  
by Build.VERSION.

   Furthermore none of these seem to match the line no from the  
stracktrace. It says method "run" in CacheManager.java:391. In both  
versions line 391 is not in a run method ;-(

   So, how to match stacktraces to code?

Cheers,
Mariano

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Gridview loads in reverse on onConfigurationChanged

Hey everyone,

I have a gridview of images that I load from the internet.  When the
phone rotates (or some other config change), onConfigurationChanged()
is called.  When that happens, the items in the gridview are reversed
(meaning, the 1st image is the last; they are in reverse order).

Does anyone know why this is or how to change it?   I'm hoping someone
has run into this before...


Sorry if I don't share any code.  I don't think It'd help; it's more
of a conceptual question.


Thanks,

Mike

2. Ko ga bisa buka Root Explorer yah? ada yang tau kenapa?

ada yang pernah ngalamin jg ga nih?




-- 
"Indonesian Android Community [id-android]" 

3. Kalo Cara aktifin APPS2SD gimana ya? HTC MAGIC 32A Eclair 2.1 [MADE BY ME/XDA DEVELOPER]

4. Kalo Cara aktifin APPS2SD gimana ya? HTC MAGIC 32A Eclair 2.1 [MADE BY ME/XDA DEVELOPER]

5. Ko ga bisa buka Root Explorer yah? ada yang tau kenapa?

6. Dialer One

7. HTC Desire's Sense UI ported to Droid