Skip to content

Commit 0659099

Browse files
committed
** fix ** Fixes LargeFileUploadTask constructor
fixes #1621
1 parent ae86227 commit 0659099

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/java/com/microsoft/graph/core/tasks/LargeFileUploadTask.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ public LargeFileUploadTask(@Nullable final RequestAdapter requestAdapter,
8888
Objects.requireNonNull(uploadSession);
8989
Objects.requireNonNull(uploadStream);
9090
Objects.requireNonNull(factory);
91-
if(uploadStream.available() <=0) {
92-
throw new IllegalArgumentException("Must provide a stream that is not empty.");
93-
}
9491
this.uploadSession = extractSessionFromParsable(uploadSession);
9592
this.requestAdapter = Objects.isNull(requestAdapter) ? initializeAdapter(this.uploadSession.getUploadUrl()):requestAdapter;
9693
this.totalUploadLength = streamSize;

0 commit comments

Comments
 (0)