You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by aj...@apache.org on 2008/08/07 05:25:48 UTC

svn commit: r683491 - /incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/tags/RSSImageLinkTag.java

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) )
             {