jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajaqu...@apache.org
Subject svn commit: r683491 - /incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/tags/RSSImageLinkTag.java
Date Thu, 07 Aug 2008 03:25:48 GMT
Author: ajaquith
Date: Wed Aug  6 20:25:47 2008
New Revision: 683491

URL: http://svn.apache.org/viewvc?rev=683491&view=rev
Log:
Fixed NPE in RSSImageLinkTag, which erroneously assumes that RSSGenerator is always available.
However, it might not be if RSS feeds are disabled.

Modified:
    incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/tags/RSSImageLinkTag.java

Modified: incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/tags/RSSImageLinkTag.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/tags/RSSImageLinkTag.java?rev=683491&r1=683490&r2=683491&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/tags/RSSImageLinkTag.java (original)
+++ incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/tags/RSSImageLinkTag.java Wed Aug  6 20:25:47
2008
@@ -95,7 +95,7 @@
         JspWriter out = pageContext.getOut();
         ResourceBundle rb = m_wikiContext.getBundle( InternationalizationManager.CORE_BUNDLE
);
 
-        if( engine.getRSSGenerator().isEnabled() )
+        if( engine.getRSSGenerator() != null && engine.getRSSGenerator().isEnabled()
)
         {
             if( RSSGenerator.MODE_FULL.equals(m_mode) )
             {



Mime
View raw message