[
https://issues.apache.org/jira/browse/OFBIZ-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14211309#comment-14211309 ]
Jacques Le Roux edited comment on OFBIZ-5875 at 11/13/14 9:22 PM:
------------------------------------------------------------------
Thanks Wai, Youseef,
Wai, your fix works, thanks for the steps.
Youseef, thanks for the tip. Indeed at [r1636102|
https://svn.apache.org/viewvc?view=revision&revision=1636102] the default constructor
{code}
/** Default Constructor */
public ModelMenuItem(ModelMenu modelMenu) {
this.modelMenu = modelMenu;
}
{code}
has been replaced by this one
{code}
public ModelMenuItem(String name) {
super(name);
}
{code}
A bit late tonight, I will check why this has been removed and if there is not a better solution than Wai's. Maybe to introduce a setter for modelMenu.
was (Author: jacques.le.roux):
Thanks Wai, Youseef,
Wai, your fix works, thanks for the steps.
Youseef, thanks for the tip. Indeed at [r1636102|
https://svn.apache.org/viewvc?view=revision&revision=1636102] the default constructor
{code}
/** Default Constructor */
public ModelMenuItem(ModelMenu modelMenu) {
this.modelMenu = modelMenu;
}
{code}
has been replaced by this one
{code}
public ModelMenuItem(String name) {
super(name);
}
{code}
A bit late tonight, I will check why this has been removed and if there is not a better solution than Wai's. Maybe to introduce a setter.
> Example component causes null pointer exception message on page
> ---------------------------------------------------------------
>
> Key: OFBIZ-5875
> URL:
https://issues.apache.org/jira/browse/OFBIZ-5875> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Trunk
> Reporter: Wai
> Attachments: OFBIZ-5875.patch
>
>
> When user selects the Example component, a null pointer exception happens and stack trace is shown on the page.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)