Uploaded image for project: 'uDig'
  1. uDig
  2. UDIG-2070

Polygon SLD Raises NullPointer Error when there is no Stroke element

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: UDIG 1.5.0.RC1
    • Fix Version/s: None
    • Component/s: wfs plugin
    • Labels:
      None
    • Environment:

      WIndows 8

      Description

      If an sld is loaded, or created by Udig with the border disabled (in style gui) or without the style element, a NullPointerException is raised. Geoserver validates sld successfully if the stroke element is missing. This means that using the GUI, its difficult to set a polygon without an outline. Error log follows:

      !ENTRY org.eclipse.jface 4 2 2016-06-30 13:14:28.155
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
      !STACK 0
      java.lang.NullPointerException
       at org.locationtech.udig.style.advanced.common.styleattributeclasses.LineSymbolizerWrapper.clearGraphicStroke(LineSymbolizerWrapper.java:206)
       at org.locationtech.udig.style.advanced.polygons.PolygonPropertiesComposite.onStyleChanged(PolygonPropertiesComposite.java:278)
       at org.locationtech.udig.style.advanced.common.ParameterComposite.notifyListeners(ParameterComposite.java:112)
       at org.locationtech.udig.style.advanced.common.BoderParametersComposite.modifyText(BoderParametersComposite.java:686)
       at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
       at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
       at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:2610)
       at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4669)
       at org.eclipse.swt.widgets.Control.windowProc(Control.java:4531)
       at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
       at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
       at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2425)
       at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:255)
       at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
       at org.eclipse.swt.widgets.Text.windowProc(Text.java:2254)
       at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
       at org.eclipse.swt.internal.win32.OS.SetWindowTextW(Native Method)
       at org.eclipse.swt.internal.win32.OS.SetWindowText(OS.java:3446)
       at org.eclipse.swt.widgets.Text.setText(Text.java:1977)
       at org.locationtech.udig.style.advanced.common.BoderParametersComposite.update(BoderParametersComposite.java:441)
       at org.locationtech.udig.style.advanced.polygons.PolygonPropertiesComposite.update(PolygonPropertiesComposite.java:100)
       at org.locationtech.udig.style.advanced.polygons.PolygonPropertiesComposite.setRule(PolygonPropertiesComposite.java:93)
       at org.locationtech.udig.style.advanced.polygons.PolygonPropertiesEditor$2.selectionChanged(PolygonPropertiesEditor.java:223)
       at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
       at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
       at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
       at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)
       at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)
       at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)
       at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)
       at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)
       at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)
       at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
       at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
       at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
       at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
       at org.eclipse.jface.window.Window.open(Window.java:801)
       at org.locationtech.udig.style.sld.editor.OpenStyleEditorAction.run(OpenStyleEditorAction.java:119)
       at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
       at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
       at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
       at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
       at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
       at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
       at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
       at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
       at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
       at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
       at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
       at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
       at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
       at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
       at org.locationtech.udig.internal.ui.UDIGApplication.start(UDIGApplication.java:132)
       at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
       at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
       at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
       at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
       at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              plesk Paul
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: