Skip to content

Commit 95ac84a

Browse files
committed
cope with null default values
1 parent 3f7fd65 commit 95ac84a

File tree

3 files changed

+297
-236
lines changed

3 files changed

+297
-236
lines changed

src/main/java/org/commonwl/view/cwl/CWLService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,9 @@ private String extractID(Map<String, Object> step) {
871871
private String extractDefault(Map<String, Object> inputOutput) {
872872
if (inputOutput != null && inputOutput.containsKey(DEFAULT)) {
873873
Object default_value = ((Map<String, Object>) inputOutput).get(DEFAULT);
874+
if (default_value == null) {
875+
return null;
876+
}
874877
if (Map.class.isAssignableFrom(default_value.getClass())
875878
&& ((Map<String, Object>) default_value).containsKey(LOCATION)) {
876879
return (String) ((Map<String, Object>) default_value).get(LOCATION);

0 commit comments

Comments
 (0)