1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-12 14:18:02 -05:00

Fixed the parsing of response data for WebDAV requests.

This commit is contained in:
wongk 2011-12-28 14:03:44 -05:00 committed by Jesse Vincent
parent 1799a2ab2a
commit 8f061b14ee

View File

@ -2232,7 +2232,6 @@ public class WebDavStore extends Store {
*/ */
public class DataSet { public class DataSet {
private HashMap<String, HashMap<String, String>> mData = new HashMap<String, HashMap<String, String>>(); private HashMap<String, HashMap<String, String>> mData = new HashMap<String, HashMap<String, String>>();
// private HashMap<String, String> mLostData = new HashMap<String, String>();
private StringBuilder mUid = new StringBuilder(); private StringBuilder mUid = new StringBuilder();
private HashMap<String, String> mTempData = new HashMap<String, String>(); private HashMap<String, String> mTempData = new HashMap<String, String>();
@ -2250,8 +2249,7 @@ public class WebDavStore extends Store {
public void finish() { public void finish() {
String uid = mUid.toString(); String uid = mUid.toString();
if (!uid.equals("") && if (uid != null && mTempData != null) {
mTempData != null) {
mData.put(uid, mTempData); mData.put(uid, mTempData);
} else if (mTempData != null) { } else if (mTempData != null) {
/* /*