Issue Details (XML | Word | Printable)

Key: CONTROLS-34
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Fabrizio Giustina
Reporter: Fabrizio Giustina
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Controls for Magnolia CMS

NPE in UUIDLinkGridColumnType for empty cells

Created: 24/Aug/10 12:29   Updated: 24/Aug/10 12:35   Resolved: 24/Aug/10 12:35
Component/s: None
Affects Version/s: 4.1.0
Fix Version/s: 4.1.1


 Description  « Hide

UUIDLinkGridColumnType doesn't check for empty cells while doing uuid->path conversion, ending up in NPEs for empty cells

java.lang.NullPointerException
	at org.apache.jackrabbit.core.id.NodeId.<init>(NodeId.java:128)
	at org.apache.jackrabbit.core.SessionImpl.getNodeByUUID(SessionImpl.java:850)
	at info.magnolia.cms.core.DefaultHierarchyManager.getContentByUUID(DefaultHierarchyManager.java:474)
	at info.magnolia.cms.util.ContentUtil.getContentByUUID(ContentUtil.java:155)
	at net.sourceforge.openutils.mgnlcontrols.configuration.UUIDLinkGridColumnType.processColumnOnLoad(UUIDLinkGridColumnType.java:96)
	at net.sourceforge.openutils.mgnlcontrols.dialog.DialogGrid.addToParameters(DialogGrid.java:101)
	at net.sourceforge.openutils.mgnlcontrols.dialog.ConfigurableFreemarkerDialog.drawHtml(ConfigurableFreemarkerDialog.java:214)


Fabrizio Giustina added a comment - 24/Aug/10 12:35

fixed in 4.1.1