From b919ea2164aa73e4ffc8932aa2b37abfa123344f Mon Sep 17 00:00:00 2001 From: Moez Bhatti Date: Tue, 22 Dec 2015 13:48:11 -0500 Subject: [PATCH] Crashlytics #47 --- .../java/com/moez/QKSMS/transaction/NotificationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QKSMS/src/main/java/com/moez/QKSMS/transaction/NotificationManager.java b/QKSMS/src/main/java/com/moez/QKSMS/transaction/NotificationManager.java index e0b6c88a..ee788e2b 100644 --- a/QKSMS/src/main/java/com/moez/QKSMS/transaction/NotificationManager.java +++ b/QKSMS/src/main/java/com/moez/QKSMS/transaction/NotificationManager.java @@ -535,7 +535,7 @@ public class NotificationManager { SlideshowModel model = message.mSlideshow; - if (model != null && model.isSimple()) { + if (model != null && model.isSimple() && model.get(0).getImage() != null) { Log.d(TAG, "MMS type: image"); ImageModel imageModel = model.get(0).getImage(); Bitmap image = imageModel.getBitmap(imageModel.getWidth(), imageModel.getHeight());