PrepareAVWorkflowOperationHandler.mux() can throw multiple NPEs

Steps to reproduce

mux() takes in numerous arguments and doesn't check them before calling methods on them. e.g:

160 0 String sourceFlavorName = StringUtils.trimToNull(operation.getConfiguration("source-flavor"));
161 0 String targetTrackTags = StringUtils.trimToNull(operation.getConfiguration("target-tags"));
162 0 String targetTrackFlavorName = StringUtils.trimToNull(operation.getConfiguration("target-flavor"));
163 0 String encodingProfileName = StringUtils.trimToNull(operation.getConfiguration("encoding-profile"));
164 0 boolean promiscuousMuxing = "true".equalsIgnoreCase(StringUtils.trimToEmpty(operation
165 .getConfiguration("promiscuous-audio-muxing")));

will NPE if operation is passed in as null. The method should either fail gracefully, or throw a wrapped exception.

No test has been input for this yet.

Status

Assignee

Tobias Schiebeck

Reporter

Christopher Brooks

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

Components

Affects versions

Priority

Major
Configure