ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Crum (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-6219) NPE while rendering content uisng screen widget
Date Fri, 27 Mar 2015 13:32:53 GMT

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

Adrian Crum commented on OFBIZ-6219:

This is beginner Java, and I can't believe we are having this discussion. I don't understand
the point you are trying to make.

My patch fixes the problem. Your patch does exactly the same thing but with more code. Just
commit the patch and close the issue. This discussion is a waste of time.

> NPE while rendering content uisng screen widget
> -----------------------------------------------
>                 Key: OFBIZ-6219
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6219
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content, framework
>    Affects Versions: Release Branch 14.12, Trunk
>            Reporter: Deepak Dixit
>         Attachments: OFBIZ-6219.patch, OFBIZ-6219.patch, OFBIZ-6219.patch
> If we want to render an content that does't have dataResourceId then screen widget throwing
> {code}
> Caused by: java.lang.NullPointerException
> 	at org.ofbiz.widget.model.ModelScreenWidget$Content.renderWidgetString(ModelScreenWidget.java:1399)
> 	at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> 	at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> 	at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) ~[ofbiz-widget.jar:?]
> 	at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) ~[ofbiz-widget.jar:?]
> 	at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) ~[ofbiz-widget.jar:?]
> {code}

This message was sent by Atlassian JIRA

View raw message