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

NPE while rendering content uisng screen widget

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Release Branch 14.12, Trunk
    • Fix Version/s: 14.12.01, 16.11.01
    • Component/s: content, framework
    • Labels:
      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

            • Assignee:
              deepak.dixit Deepak Dixit
              Reporter:
              deepak.dixit Deepak Dixit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: