mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Avoid NullPointerException
This commit is contained in:
parent
89e0ed3c03
commit
4ed77c7a29
@ -2189,7 +2189,7 @@ public class MessagingController implements Runnable {
|
|||||||
Log.d(K9.LOG_TAG, "processingPendingMoveOrCopy: source folder = " + srcFolder
|
Log.d(K9.LOG_TAG, "processingPendingMoveOrCopy: source folder = " + srcFolder
|
||||||
+ ", " + messages.size() + " messages, destination folder = " + destFolder + ", isCopy = " + isCopy);
|
+ ", " + messages.size() + " messages, destination folder = " + destFolder + ", isCopy = " + isCopy);
|
||||||
|
|
||||||
Map <String, String> remoteUidMap = new HashMap<String, String>();
|
Map <String, String> remoteUidMap = null;
|
||||||
|
|
||||||
if (!isCopy && destFolder.equals(account.getTrashFolderName())) {
|
if (!isCopy && destFolder.equals(account.getTrashFolderName())) {
|
||||||
if (K9.DEBUG)
|
if (K9.DEBUG)
|
||||||
@ -2220,7 +2220,7 @@ public class MessagingController implements Runnable {
|
|||||||
* This next part is used to bring the local UIDs of the local destination folder
|
* This next part is used to bring the local UIDs of the local destination folder
|
||||||
* upto speed with the remote UIDs of remote destionation folder.
|
* upto speed with the remote UIDs of remote destionation folder.
|
||||||
*/
|
*/
|
||||||
if (!localUidMap.isEmpty() && !remoteUidMap.isEmpty()) {
|
if (!localUidMap.isEmpty() && remoteUidMap != null && !remoteUidMap.isEmpty()) {
|
||||||
Set<String> remoteSrcUids = remoteUidMap.keySet();
|
Set<String> remoteSrcUids = remoteUidMap.keySet();
|
||||||
Iterator<String> remoteSrcUidsIterator = remoteSrcUids.iterator();
|
Iterator<String> remoteSrcUidsIterator = remoteSrcUids.iterator();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user