NullPointerException in Wiki

Description

After creating a Creole Wiki document with a title and this content (source mode):

and saving, you receive the message:

and in the log you see:

Activity

Show:

Pani GuiJuly 15, 2012 at 7:33 PM

PASSED Manual Testing using the following steps:

1. Add Wiki portlet to a page.
2. Click "This page is empty. Edit it to add some text.".
3. Click Source on editor.
4. Enter "|**|".
5. Publish.

Reproduced on:
Tomcat 6.0 + MySQL 5. 6.0.12 EE.
Tomcat 7.0 + MySQL 5. 6.1.10 EE GA1.

Wiki is temporarily unavailable and throwing exceptions in the console.

Fixed on:
Tomcat 6.0 + MySQL 5. Portal 6.0.x GIT ID: 0b4fc6038f204c16deb3e328a1021c15b7e56fa9.
Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 960a1f35e66bf04b587b4005989d04bba78ceada.
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: c30f2892ee80137c93de9f524c09a10cb01383b5.

Creating wiki page successfully and there is no error in the console.

Michael SaechangJuly 13, 2012 at 11:33 AM

Committed on:
Portal 6.1.x CE GIT ID: 01efb0c9dc2363c4e146c77148a83640c656a417.
Portal 6.2.x GIT ID: 12999fdcf2aeb57cccf74ed4239c8588270ab2fe.

Dimitri TischenkoApril 1, 2012 at 8:34 AM

Full stack trace:

Dimitri TischenkoApril 1, 2012 at 8:24 AM

In some cases, the Creole parser returns a tree with nodes containing null elements. Such a case is, for instance, '**'. I suggest adding a simple test for null values to prevent this.

Fixed

Details

Assignee

Reporter

Branch Version/s

6.1.x
6.0.x

Backported to Branch

Committed

Git Pull Request

Components

Priority

Zendesk Support

Created March 27, 2012 at 7:56 AM
Updated June 24, 2023 at 4:00 PM
Resolved April 23, 2013 at 1:52 PM
Loading...