{"action":"created","issue":{"url":"https://api.github.com/repos/Adobe-Marketing-Cloud/mobile-services/issues/138","repository_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/mobile-services","labels_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/mobile-services/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/mobile-services/issues/138/comments","events_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/mobile-services/issues/138/events","html_url":"https://github.com/Adobe-Marketing-Cloud/mobile-services/issues/138","id":137983687,"number":138,"title":"Issues sending \"\" (empty string) value especially when trying to send Pipe delimited values","user":{"login":"scottbullock3","id":13203167,"avatar_url":"https://avatars.githubusercontent.com/u/13203167?v=3","gravatar_id":"","url":"https://api.github.com/users/scottbullock3","html_url":"https://github.com/scottbullock3","followers_url":"https://api.github.com/users/scottbullock3/followers","following_url":"https://api.github.com/users/scottbullock3/following{/other_user}","gists_url":"https://api.github.com/users/scottbullock3/gists{/gist_id}","starred_url":"https://api.github.com/users/scottbullock3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottbullock3/subscriptions","organizations_url":"https://api.github.com/users/scottbullock3/orgs","repos_url":"https://api.github.com/users/scottbullock3/repos","events_url":"https://api.github.com/users/scottbullock3/events{/privacy}","received_events_url":"https://api.github.com/users/scottbullock3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T20:28:44Z","updated_at":"2016-03-29T20:42:16Z","closed_at":null,"body":"We are seeing an issue with adobeMobileLibrary-4.8.2 for Android.  When assigning the value of an empty string “” to a field in the map, the field is not getting sent.  It looks as if it is treating the value as a null. This is especially a problem when we are trying to send a pipe delimited value and in the cases that the first value is empty string the field will not send. \r\n\r\nExample:\r\n\r\nString firstValue = “”;\r\nString secondValue = “TV Show”;\r\n\r\nString finalValue = firstValue + “|” + secondValue;\r\n\r\nfieldMap.put(“FieldName”, finalValue)\r\n\r\n//FieldName will not be sent with the rest of the values on the field map."},"comment":{"url":"https://api.github.com/repos/Adobe-Marketing-Cloud/mobile-services/issues/comments/203092349","html_url":"https://github.com/Adobe-Marketing-Cloud/mobile-services/issues/138#issuecomment-203092349","issue_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/mobile-services/issues/138","id":203092349,"user":{"login":"shalehaha","id":2831856,"avatar_url":"https://avatars.githubusercontent.com/u/2831856?v=3","gravatar_id":"","url":"https://api.github.com/users/shalehaha","html_url":"https://github.com/shalehaha","followers_url":"https://api.github.com/users/shalehaha/followers","following_url":"https://api.github.com/users/shalehaha/following{/other_user}","gists_url":"https://api.github.com/users/shalehaha/gists{/gist_id}","starred_url":"https://api.github.com/users/shalehaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shalehaha/subscriptions","organizations_url":"https://api.github.com/users/shalehaha/orgs","repos_url":"https://api.github.com/users/shalehaha/repos","events_url":"https://api.github.com/users/shalehaha/events{/privacy}","received_events_url":"https://api.github.com/users/shalehaha/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T20:42:15Z","updated_at":"2016-03-29T20:42:15Z","body":"@scottbullock3,\r\n\r\nIt's expected that SDK is ruling out the kv pairs with an empty value string.\r\n\r\nBut in your example, FieldName should be sent since it's not empty. Here is what I believe should be happening:\r\nString firstValue = “”;\r\nString secondValue = “TV Show”;\r\nString finalValue = firstValue + “|” + secondValue;\r\n\r\nfieldMap.put(“firstValue”, firstValue);    // not be sent, because it's empty\r\nfieldMap.put(“secondValue”, secondValue);  // be sent \r\nfieldMap.put(“FieldName”, finalValue);  // be sent \r\n\r\n- Jiabin"}}