Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-7991

Style Edit Page: Apply then Submit causes WicketRuntimeException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.2, 2.11-beta
    • Component/s: None
    • Labels:
      None

      Description

      Pushing Apply and then Submit on the Style Edit Page causes:

      org.apache.wicket.WicketRuntimeException: Null object returned for expression: legend.width for setting value: 0 on: StyleInfoImpl[dem]
      

      Mailing list discussion: https://sourceforge.net/p/geoserver/mailman/message/35658949/

      The error can be reproduced on the default point style.

      The issue is that the Abstract Style Page initializes a model object for the Legend, but effectively only during the constructor call – AbstractStylePage(StyleInfo style). The "apply" button kicks off some logic that nulls out the Legend object if the user didn't provide any legend-related input, but doesn't refresh the page (and thus doesn't re-initialize the legend object).

      When the user then pushes submit, the null legend model breaks the form submission.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mkruszewski Matt Kruszewski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: