From: SourceForge.net <no...@so...> - 2007-11-14 01:03:21
|
Patches item #1831466, was opened at 2007-11-14 10:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=531527&aid=1831466&group_id=71505 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Terry (terry_permeance) Assigned to: Nobody/Anonymous (nobody) Summary: Selecting section of mparticle as Related Link causes NPE Initial Comment: Steps to reproduce: 1. Edit existing article 2. Go to Authoring > Related Links 3. Tick "Content Item" and click Search 4. Click Search tab 5. Enter a query that will return an Article Section 6. Select item for a matching section 7. Click Create 8. Exception is reported: java.lang.NullPointerException at com.arsdigita.cms.contenttypes.Link.getInternalOrExternalURI(Link.java:294) at com.arsdigita.cms.contenttypes.ui.LinkTable$LinkTableRenderer.getComponent(LinkTable.java:154) at com.arsdigita.bebop.Table.generateXML(Table.java:738) Problem: ArticleSection doesn't have a parent_id in CMS_ITEMS table. Could have fixed this but then need data conversion to populate the existing records. An easier fix is to invoke getMPArticle() instead of getParent() in ArticleSection.getContentSection(). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=531527&aid=1831466&group_id=71505 |