From 00a18f58a7398f2b1544dcc72c8aef391ea5c19f Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Thu, 5 Nov 2015 11:08:54 -0800 Subject: [PATCH] catch MMS NPE for time being Fixes #4379 Closes #4401 // FREEBIE --- src/org/thoughtcrime/securesms/mms/LegacyMmsConnection.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/thoughtcrime/securesms/mms/LegacyMmsConnection.java b/src/org/thoughtcrime/securesms/mms/LegacyMmsConnection.java index 43c9fd192f..135f990df9 100644 --- a/src/org/thoughtcrime/securesms/mms/LegacyMmsConnection.java +++ b/src/org/thoughtcrime/securesms/mms/LegacyMmsConnection.java @@ -189,6 +189,10 @@ public abstract class LegacyMmsConnection { if (response.getStatusLine().getStatusCode() == 200) { return parseResponse(response.getEntity().getContent()); } + } catch (NullPointerException npe) { + // TODO determine root cause + // see: https://github.com/WhisperSystems/Signal-Android/issues/4379 + throw new IOException(npe); } finally { if (response != null) response.close(); if (client != null) client.close();