1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-20 04:43:01 +00:00

Prevent send of empty value for expiration date and link name when public share is created

This commit is contained in:
David A. Velasco
2017-05-05 12:57:55 +02:00
parent 6d0773cf34
commit 8f5ac456ab
2 changed files with 11 additions and 13 deletions
@@ -255,7 +255,7 @@ public class RemoteOperationResult implements Serializable {
ErrorMessageParser xmlParser = new ErrorMessageParser();
try {
String errorMessage = xmlParser.parseXMLResponse(is);
if (errorMessage != null && errorMessage != "") {
if (errorMessage != null && errorMessage.length() > 0) {
mCode = ResultCode.SPECIFIC_FORBIDDEN;
mHttpPhrase = errorMessage;
}