How come stack trace line numbers don't match source code line numbers? How come stack trace line numbers don't match source code line numbers? sqlite sqlite

How come stack trace line numbers don't match source code line numbers?


All of the internal errors are being caused by this line in your code:

com.mydomain.myapp.albums.AlbumsData.insertOrIgnore(AlbumsData.java:89)

You need to go to that and figure out what is going on with it. I am in agreement with @323go you are probably passing it a null value of some sort. Once you get that taken care of the internal stuff should go away.

As to why the line numbers are different. You are looking at the bare bones stock system source code. By the time it makes it onto a device and into a consumers hands it will likely have been changed a fair bit, I don't know specifically why or what they would change in the SQLiteDatabase class but it appears they have changed something.


I wouldn't be sure official android sources matches android version on your phone. I think samsung may changed android for it's own purposes: samsung guys took android 4.0.3 sources, modified them, added some stuff to different classes (SQLiteDatabase seems to be one of them), then build it and got their own version of android. They didn't modify constants that shows version of android so you can see that it's 'still' 4.0.3.