Building from the latest master branch (as of today), the following test fails with a NullPointerException: ConversationAdapterTest. testGetItemIdEquals
java.lang.NullPointerException
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:203)
at org.thoughtcrime.securesms.database.DatabaseFactory.<init>(DatabaseFactory.java:148)
at org.thoughtcrime.securesms.database.DatabaseFactory.getInstance(DatabaseFactory.java:64)
at org.thoughtcrime.securesms.database.DatabaseFactory.getAttachmentDatabase(DatabaseFactory.java:87)
at org.thoughtcrime.securesms.ConversationAdapter.getItemId(ConversationAdapter.java:272)
at org.thoughtcrime.securesms.ConversationAdapterTest.testGetItemIdEquals(ConversationAdapterTest.java:29)
[... many more lines ...]
There are several issues open already about this, the latest one being for example #7742, and according to these closed tickets, the issue is supposed to be solved. Of course it can be "circumvented" by skipping the tests (e.g. doing gradle assemblerelease) but that's besides the point of tests, is it not?
gradle build.Expected results: All tests should pass successfully.
It's an open wiki; everything on there is "community contributed" and not official. You could update the wiki to replace "build" with "assembleDebug" or "assembleRelease" if you'd like. Thanks!