From 91573e19ac50f1b8deab80801b60d70b136f3979 Mon Sep 17 00:00:00 2001 From: Matthew Brace Date: Thu, 26 Feb 2009 06:56:30 +0000 Subject: [PATCH] Fix for null pointer exception when there is an exception thrown and the caught in processRequest without properly terminating checks (ie, during the recursive calls, resulting in a null data set being returned). --- src/com/android/email/mail/store/WebDavStore.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/email/mail/store/WebDavStore.java b/src/com/android/email/mail/store/WebDavStore.java index 2b9c08f0b..1a119ecf5 100644 --- a/src/com/android/email/mail/store/WebDavStore.java +++ b/src/com/android/email/mail/store/WebDavStore.java @@ -1299,6 +1299,10 @@ public class WebDavStore extends Store { headers.put("Brief", "t"); dataset = processRequest(this.mFolderUrl, "SEARCH", messageBody, headers); + if (dataset == null) { + throw new MessagingException("Data Set from request was null"); + } + uidToReadStatus = dataset.getUidToRead(); for (int i = 0, count = messages.length; i < count; i++) {