We're updating the issue view to help you get more done. 

NumberFormatException if duration is has decimals on media:content

Description

Code to reproduce:

1 2 3 <media:content url="http://someurl/somevideo.wmv" fileSize="21592869" bitrate="496024" duration="174.42" type="video/x-ms-wmv" isDefault="false"/>

This throws NFE. Code to fix it, line 138 in MediaModuleParser. Just get to float first and then get long value:

1 mc.setDuration((content.getAttributeValue("duration") == null || content.getAttributeValue("duration").length() <= 0) ? null : new Float(content.getAttributeValue("duration")).longValue());

Environment

None

Status

Assignee

Robert Cooper

Reporter

Anders Magnus Andersen

Labels

None

Participants

None

Priority

Minor