Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b2c2024 authored by Jay Shrauner's avatar Jay Shrauner Committed by Android Git Automerger
Browse files

am 0bb76dc6: Merge "Fix NPE in background thread" into lmp-mr1-dev

* commit '0bb76dc6':
  Fix NPE in background thread
parents fdb001c0 0bb76dc6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1768,7 +1768,7 @@ public class QuickContactActivity extends ContactsActivity {
            @Override
            protected MaterialPalette doInBackground(Void... params) {

                if (imageViewDrawable instanceof BitmapDrawable
                if (imageViewDrawable instanceof BitmapDrawable && mContactData != null
                        && mContactData.getThumbnailPhotoBinaryData() != null
                        && mContactData.getThumbnailPhotoBinaryData().length > 0) {
                    // Perform the color analysis on the thumbnail instead of the full sized