abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r473466 - /incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaExtensionFactory.java
Date Fri, 10 Nov 2006 20:50:02 GMT
Author: jmsnell
Date: Fri Nov 10 12:50:01 2006
New Revision: 473466

URL: http://svn.apache.org/viewvc?view=rev&rev=473466
Log:
ExtensionFactory should not return a null

Modified:
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaExtensionFactory.java

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaExtensionFactory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaExtensionFactory.java?view=diff&rev=473466&r1=473465&r2=473466
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaExtensionFactory.java
(original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/media/MediaExtensionFactory.java
Fri Nov 10 12:50:01 2006
@@ -44,7 +44,7 @@
     if (qname.equals(MediaConstants.TEXT)) return (T) new MediaText(internal);
     if (qname.equals(MediaConstants.THUMBNAIL)) return (T) new MediaThumbnail(internal);
     if (qname.equals(MediaConstants.TITLE)) return (T) new MediaTitle(internal);
-    return null;
+    return (T)internal;
   }
 
   public List<String> getNamespaces() {



Mime
View raw message