Skip to content

Commit ee619c4

Browse files
author
Dan Rosenshain
committed
fix bug in ParseOkHttpClient that can cause errors when saving ParseFile
1 parent 0c3009a commit ee619c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parse/src/main/java/com/parse/ParseOkHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public ParseOkHttpClient(int socketOperationTimeout, SSLSessionCache sslSessionC
144144
// Set Body
145145
ParseHttpBody parseBody = parseRequest.getBody();
146146
ParseOkHttpRequestBody okHttpRequestBody = null;
147-
if(parseBody instanceof ParseByteArrayHttpBody) {
147+
if(parseBody != null) {
148148
okHttpRequestBody = new ParseOkHttpRequestBody(parseBody);
149149
}
150150
switch (method) {

0 commit comments

Comments
 (0)