ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-5875) Example component causes null pointer exception message on page
Date Thu, 13 Nov 2014 21:21:34 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14211309#comment-14211309
] 

Jacques Le Roux commented on OFBIZ-5875:
----------------------------------------

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)

Mime
View raw message