TitleNull pointer exception when inserting images without align attribute
Date10-Aug-2006 15:50:44 EEST
Version2.4.33
SubmitterCandid Dauth
Bug criticalityMediumBug
Browser version*
Bug statusClosedBug
PageProvider used
Servlet Containertomcat-5.5
Operating SystemGNU/Linux
URL
Java version1.5.0_07

When I insert an image using the syntax [{Image src='blabla'}], the Image Plugin throws a null pointer exception.

com/ecyrd/jspwiki/plugins/Image.java:125 should be changed:

-             if( align.equals("center") ) result.append(" style=\"margin-left: auto; margin-right: auto;\"");
+             if( align != null && align.equals("center") ) result.append(" style=\"margin-left: auto; margin-right: auto;\"");

Temporary workaround: Add an empty align attribute: [{Image src='blabla' align=''}]


Fixed in 2.4.35

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-5) was last changed on 24-Aug-2006 14:57 by Janne Jalkanen