Skip to content

Commit

Permalink
Merge pull request #698 from couchbase/feature/issue_677_pull_attch_f…
Browse files Browse the repository at this point in the history
…ails_with_deleted_rev

Fixed #677
  • Loading branch information
pasin committed Aug 5, 2015
2 parents 2952fd2 + cef6855 commit 7219333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/couchbase/lite/BlobStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ public boolean getKeyForFilename(BlobKey outKey, String filename) {
}

public boolean hasBlobForKey(BlobKey key) {
if(key == null) return false;
String path = getRawPathForKey(key);
File file = new File(path);
return file.isFile() && file.exists();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public AttachmentInternal(String name, Map<String, Object> attachInfo)
if (revPos <= 0) {
throw new CouchbaseLiteException(Status.BAD_ATTACHMENT);
}
setRevpos(revPos);
}
// skip
} else if (attachInfo.containsKey("follows") &&
Expand Down

0 comments on commit 7219333

Please sign in to comment.