commit | f02e98861a8496df1467fa0b12ac05796f213f9f | [log] [tgz] |
---|---|---|
author | Evan Charlton <evanc@google.com> | Thu Mar 06 12:54:52 2014 -0800 |
committer | Evan Charlton <evanc@google.com> | Thu Mar 06 13:39:09 2014 -0800 |
tree | 406a21d876566ce84f0741e8088fea69cd5bc683 | |
parent | d29830104fc33b2c82f462353f97d3595afae887 [diff] [blame] |
Never use null collections Don't null out collections; clear() them instead. Change-Id: I738fa4b2fe5cbb3a741ee85884eb02e13d3e85c5
diff --git a/src/com/android/telecomm/OutgoingCallProcessor.java b/src/com/android/telecomm/OutgoingCallProcessor.java index a0875c9..aa0a0bb 100644 --- a/src/com/android/telecomm/OutgoingCallProcessor.java +++ b/src/com/android/telecomm/OutgoingCallProcessor.java
@@ -269,7 +269,7 @@ return; } - if (mCallServiceDescriptorIterator.hasNext()) { + if (mCallServiceDescriptorIterator != null && mCallServiceDescriptorIterator.hasNext()) { CallServiceDescriptor descriptor = mCallServiceDescriptorIterator.next(); final CallServiceWrapper callService = mCallServicesById.get(descriptor.getCallServiceId());