Fixed NPE

This commit is contained in:
Patrick Gotthard 2014-04-18 19:44:07 +02:00
parent 6fc26e5b34
commit 6831f8a4af

View file

@ -355,7 +355,7 @@ public class MediaModuleParser implements ModuleParser {
final String timeAttr = Strings.trimToNull(thumb.getAttributeValue("time")); final String timeAttr = Strings.trimToNull(thumb.getAttributeValue("time"));
Time time = null; Time time = null;
if (timeAttr == null) { if (timeAttr != null) {
time = new Time(timeAttr); time = new Time(timeAttr);
} }