From 6831f8a4af12bc4b393392dd45625ffd1f67735c Mon Sep 17 00:00:00 2001 From: Patrick Gotthard Date: Fri, 18 Apr 2014 19:44:07 +0200 Subject: [PATCH] Fixed NPE --- .../rometools/feed/module/mediarss/io/MediaModuleParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/rometools/feed/module/mediarss/io/MediaModuleParser.java b/src/main/java/org/rometools/feed/module/mediarss/io/MediaModuleParser.java index 8920bb2..35c4ee7 100644 --- a/src/main/java/org/rometools/feed/module/mediarss/io/MediaModuleParser.java +++ b/src/main/java/org/rometools/feed/module/mediarss/io/MediaModuleParser.java @@ -355,7 +355,7 @@ public class MediaModuleParser implements ModuleParser { final String timeAttr = Strings.trimToNull(thumb.getAttributeValue("time")); Time time = null; - if (timeAttr == null) { + if (timeAttr != null) { time = new Time(timeAttr); }