Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6219

NPE while rendering content uisng screen widget

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 14.12, Trunk
    • 14.12.01, 16.11.01
    • content, framework
    • None

    Description

      If we want to render an content that does't have dataResourceId then screen widget throwing NPE

      Caused by: java.lang.NullPointerException
      	at org.ofbiz.widget.model.ModelScreenWidget$Content.renderWidgetString(ModelScreenWidget.java:1399) ~[ofbiz-widget.jar:?]
      	at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) ~[ofbiz-widget.jar:?]
      	at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) ~[ofbiz-widget.jar:?]
      	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:?]
      

      Attachments

        1. OFBIZ-6219.patch
          0.8 kB
          Deepak Dixit
        2. OFBIZ-6219.patch
          0.8 kB
          Adrian Crum
        3. OFBIZ-6219.patch
          0.7 kB
          Deepak Dixit

        Activity

          People

            deepak Deepak Dixit
            deepak Deepak Dixit
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: