mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 07:57:30 +00:00
Fix for NPE on null mms bytes.
This commit is contained in:
parent
6bd0f35787
commit
eb9b2ef318
@ -40,7 +40,7 @@ public class MmsSendHelper extends MmsCommunication {
|
||||
AndroidHttpClient client = null;
|
||||
|
||||
try {
|
||||
Log.w("MmsSender", "Sending MMS1 of length: " + mms.length);
|
||||
Log.w("MmsSender", "Sending MMS1 of length: " + (mms != null ? mms.length : "null"));
|
||||
client = constructHttpClient(context, parameters);
|
||||
URI targetUrl = new URI(parameters.getMmsc());
|
||||
HttpHost target = new HttpHost(targetUrl.getHost(), targetUrl.getPort(), HttpHost.DEFAULT_SCHEME_NAME);
|
||||
|
Loading…
x
Reference in New Issue
Block a user