Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-2432

Fix NPE on widget deprecated properties validation (5.6)

    XMLWordPrintable

    Details

      Description

      The following error appears in logs since widget properties validation has been put in place, when using a tab with the "toggleable layout" widget, using target platform 5.6 only:

      2015-01-19 12:24:02,679 ERROR [catalina-exec-5] [com.nuxeo.studio.core.impl.DefaultProject] Validation failed for feature 'XXX_tab'
      java.lang.NullPointerException
              at com.nuxeo.studio.client.features.layout.WidgetTypeDefContribution.getWidgetForPropertyPerModeMap(WidgetTypeDefContribution.java:90)
              at com.nuxeo.studio.client.features.layout.WidgetTypeDefContribution.getWidgetDefinitionFor(WidgetTypeDefContribution.java:112)
              at com.nuxeo.studio.core.validators.LayoutValidator.validateDeprecatedWidgetProperties(LayoutValidator.java:265)
              at com.nuxeo.studio.core.validators.LayoutValidator.validateWidget(LayoutValidator.java:182)
              at com.nuxeo.studio.core.validators.GridLayoutValidator.validate(GridLayoutValidator.java:68)
              at com.nuxeo.studio.core.builders.TabFeatureBuilder.validate(TabFeatureBuilder.java:53)
              at com.nuxeo.studio.core.builders.TabFeatureBuilder.validate(TabFeatureBuilder.java:35)
              at com.nuxeo.studio.core.impl.DefaultProject.validate(DefaultProject.java:617)
              at com.nuxeo.studio.servlet.StudioServiceImpl.getProject(StudioServiceImpl.java:164)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: