robolectric/robolectric — pull request #534 by cybergeek94 (2013-05-16 17:55:13+00:00)
Title: Shadow implementation of SQLiteDatabase.isDbLockedByCurrentThread()

SQLiteDatabase.isDbLockedByCurrentThread() was throwing a NullPointerException in a nested call to private method getThreadSession(). Adding an implementation to ShadowSQLiteDatabase that made use of the internal RecurrentLock scheme solved the issue.