Fix #2439 NPE via null check

This commit is contained in:
AndyScherzinger 2018-04-09 23:14:39 +02:00
parent 238b561159
commit c18a44b044
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -396,7 +396,7 @@ public class UploadFileOperation extends SyncOperation {
// try to unlock folder with stored token, e.g. when upload needs to be resumed or app crashed
// the parent folder should exist as it is a resume of a broken upload
if (!mFolderUnlockToken.isEmpty()) {
if (mFolderUnlockToken != null && !mFolderUnlockToken.isEmpty()) {
UnlockFileOperation unlockFileOperation = new UnlockFileOperation(parent.getLocalId(), mFolderUnlockToken);
RemoteOperationResult unlockFileOperationResult = unlockFileOperation.execute(client, true);