Fix for NPE on null mms bytes.
This commit is contained in:
parent
6bd0f35787
commit
eb9b2ef318
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ public class MmsSendHelper extends MmsCommunication {
|
||||||
AndroidHttpClient client = null;
|
AndroidHttpClient client = null;
|
||||||
|
|
||||||
try {
|
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);
|
client = constructHttpClient(context, parameters);
|
||||||
URI targetUrl = new URI(parameters.getMmsc());
|
URI targetUrl = new URI(parameters.getMmsc());
|
||||||
HttpHost target = new HttpHost(targetUrl.getHost(), targetUrl.getPort(), HttpHost.DEFAULT_SCHEME_NAME);
|
HttpHost target = new HttpHost(targetUrl.getHost(), targetUrl.getPort(), HttpHost.DEFAULT_SCHEME_NAME);
|
||||||
|
|
Loading…
Add table
Reference in a new issue