mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-20 19:51:27 +00:00
fixes Coverity issue 72287
This commit is contained in:
@@ -71,7 +71,9 @@ class DavFileWithRange extends DavFile {
|
||||
try {
|
||||
final Long lower = requestRange.getLeft().isEmpty() ? null : Long.valueOf(requestRange.getLeft());
|
||||
final Long upper = requestRange.getRight().isEmpty() ? null : Long.valueOf(requestRange.getRight());
|
||||
if (lower == null) {
|
||||
if (lower == null && upper == null) {
|
||||
return new ImmutablePair<Long, Long>(0l, contentLength - 1);
|
||||
} else if (lower == null) {
|
||||
return new ImmutablePair<Long, Long>(contentLength - upper, contentLength - 1);
|
||||
} else if (upper == null) {
|
||||
return new ImmutablePair<Long, Long>(lower, contentLength - 1);
|
||||
|
||||
Reference in New Issue
Block a user