catch MMS NPE for time being

Fixes #4379
Closes #4401
// FREEBIE
fork-5.53.8
Jake McGinty 2015-11-05 11:08:54 -08:00 zatwierdzone przez Moxie Marlinspike
rodzic 0ef56fb86d
commit 00a18f58a7
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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();