Skip to content

Commit 2e0f587

Browse files
committed
Added check for cmis:contentStreamMimeType
1 parent 9984cfe commit 2e0f587

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdm/src/main/java/com/sap/cds/sdm/service/DocumentUploadService.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ private void formResponse(
308308
JSONObject succinctProperties = jsonResponse.getJSONObject("succinctProperties");
309309
status = "success";
310310
objectId = succinctProperties.getString("cmis:objectId");
311-
mimeType = succinctProperties.getString("cmis:contentStreamMimeType");
311+
mimeType =
312+
succinctProperties.has("cmis:contentStreamMimeType")
313+
? succinctProperties.getString("cmis:contentStreamMimeType")
314+
: null;
312315
} else {
313316
if (responseCode == 409) {
314317
JSONObject jsonResponse = new JSONObject(responseString);

0 commit comments

Comments
 (0)