mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Check for database initialisation in AvatarProvider#openFile.
This commit is contained in:
@@ -81,6 +81,11 @@ class AvatarProvider : BaseContentProvider() {
|
||||
return null
|
||||
}
|
||||
|
||||
if (SignalDatabase.instance == null) {
|
||||
Log.w(TAG, "SignalDatabase unavailable")
|
||||
return null
|
||||
}
|
||||
|
||||
if (uriMatcher.match(uri) == AVATAR) {
|
||||
if (VERBOSE) Log.i(TAG, "Loading avatar.")
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user