1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Fix problem with expiration value in ShareXMLParser

This commit is contained in:
masensio 2014-03-18 12:17:20 +01:00
parent 30acd4875d
commit b7c136286e

View File

@ -311,7 +311,7 @@ public class ShareXMLParser {
} else if (name.equalsIgnoreCase(NODE_EXPIRATION)) {
String value = readNode(parser, NODE_EXPIRATION);
if (!value.isEmpty()) {
if (!(value.length() == 0)) {
share.setExpirationDate(Long.parseLong(readNode(parser, NODE_EXPIRATION))); // check if expiration is in long format or date format
}