TextAnalysisWorkflowOperationHandler.start() can NPE if the workflowInstance is null

Steps to reproduce

If TextAnalysisWorkflowOperationHandler.start() is called with the workflowInstance==null then it will NPE on the line:

MediaPackage src = (MediaPackage) workflowInstance.getMediaPackage().clone();

This is true also of the extractVideoText method:

List<String> sourceTagSet = asList(operation.getConfiguration("source-tags"));

Status

Assignee

Unassigned

Reporter

Christopher Brooks

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

Components

Affects versions

Priority

Major
Configure