Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2739,11 +2739,19 @@ public CodegenParameter fromParameter(Parameter param, Set<String> imports) {
}

public boolean isDataTypeBinary(String dataType) {
return dataType.toLowerCase().startsWith("byte");
if (dataType != null) {
return dataType.toLowerCase().startsWith("byte");
} else {
return false;
}
}

public boolean isDataTypeFile(String dataType) {
return dataType.toLowerCase().equals("file");
if (dataType != null) {
return dataType.toLowerCase().equals("file");
} else {
return false;
}
}

/**
Expand Down