NPE on capture agent

Steps to reproduce

On Startup one of our CA' throws this exception:

2011-08-29 14:01:29 ERROR (JobRunShell:211) - Job capture_related.SerializeJob-Unscheduled-leslie-commerce-614-1310466523434 threw an unhandled Exception:
java.lang.NullPointerException
at java.io.File.<init>(File.java:305)
at org.opencastproject.capture.impl.CaptureAgentImpl.createManifest(CaptureAgentImpl.java:587)
at org.opencastproject.capture.impl.jobs.SerializeJob.execute(SerializeJob.java:69)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:534)

The line in Question is this one:

File outputFile = new File(recording.getBaseDir(), recording.getProperty(outputProperty));

Which suggests that recording.getProperty(outputProperty) is returning null. The parameter should probably be checked for nullability and an appropriate Exception passed...

Code review suggest that 1.2 & trunk are affected as well as 1.

Assignee

Greg Logan

Reporter

David Horwitz

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major
Configure