nrkno / sofie-mos-connection

Sofie MOS Connection: A Part of the Sofie TV Studio Automation System
https://github.com/nrkno/Sofie-TV-automation/
MIT License
22 stars 14 forks source link

fix: Handle empty MOS time string #84

Closed PeterC89 closed 10 months ago

PeterC89 commented 10 months ago

About the Contributor

This pull request is posted on behalf of the BBC.

Type of Contribution

This is a: Bug fix / feature?

Current Behaviour

If a field containing a mosTime is present but an empty string (E.G. opTime in listMachInfo) then an exception is thrown.

New Behaviour

Empty fields have the current time inserted like they would if the field was undefined

Testing Instructions

Other Information

Status

nytamin commented 10 months ago

I've published this in version 3.0.6