Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Fix issue with empty inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
bpross-52n committed Jul 10, 2018
1 parent 0598e50 commit a976815
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ public static ProcessOffering createProcessDescriptionV200fromV100(ProcessDescri
processDescription.addNewAbstract().setStringValue(processDescriptionV100.getAbstract().getStringValue());
}

InputDescriptionType[] inputDescriptionTypes = processDescriptionV100.getDataInputs().getInputArray();
InputDescriptionType[] inputDescriptionTypes = new InputDescriptionType[]{};

if(processDescriptionV100.getDataInputs() != null){
inputDescriptionTypes = processDescriptionV100.getDataInputs().getInputArray();
}

for (InputDescriptionType inputDescriptionType : inputDescriptionTypes) {

Expand Down

0 comments on commit a976815

Please sign in to comment.