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

NullPointerException deleting Layer from Map

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      After a shapefile has been added, I removed the entry from the catalog view and after that I tried to remove it from LayersView. The following Exception was visible in the stacktrace and the layer is still visible in the Layers View

      !ENTRY org.locationtech.udig.project 1 0 2015-02-04 23:10:49.726
      !MESSAGE Kartenlayer aus der Karte entfernen failed to run
      !STACK 0
      java.lang.NullPointerException
      at org.geotools.renderer.lite.StreamingRenderer.stopRendering(StreamingRenderer.java:526)
      at org.locationtech.udig.render.internal.feature.basic.BasicFeatureRenderer.dispose(BasicFeatureRenderer.java:298)
      at org.locationtech.udig.project.internal.render.impl.RenderExecutorImpl.dispose(RenderExecutorImpl.java:257)
      at org.locationtech.udig.project.internal.render.impl.CompositeRendererImpl$2.remove(CompositeRendererImpl.java:113)
      at org.locationtech.udig.project.internal.render.impl.CompositeRendererImpl$2.notifyChanged(CompositeRendererImpl.java:104)
      at org.locationtech.udig.project.internal.render.impl.CompositeRenderContextImpl.notifyListeners(CompositeRenderContextImpl.java:165)
      at org.locationtech.udig.project.internal.render.impl.CompositeRenderContextImpl.removeContexts(CompositeRenderContextImpl.java:222)
      at org.locationtech.udig.project.ui.internal.RenderManagerDynamic.validateRendererConfiguration(RenderManagerDynamic.java:426)
      at org.locationtech.udig.project.ui.internal.RenderManagerAdapters$3.layerRemoved(RenderManagerAdapters.java:170)
      at org.locationtech.udig.project.internal.ContextModelListenerAdapter.notifyChanged(ContextModelListenerAdapter.java:90)
      at org.locationtech.udig.project.ui.internal.RenderManagerAdapters$3.notifyChanged(RenderManagerAdapters.java:142)
      at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:380)
      at org.eclipse.emf.common.notify.impl.NotificationImpl.dispatch(NotificationImpl.java:1033)
      at org.eclipse.emf.common.notify.impl.NotificationImpl.dispatch(NotificationImpl.java:1038)
      at org.eclipse.emf.common.notify.impl.NotifyingListImpl.removeAll(NotifyingListImpl.java:960)
      at org.locationtech.udig.project.internal.commands.DeleteLayersCommand.run(DeleteLayersCommand.java:74)
      at org.locationtech.udig.project.command.CommandManager$Executor.execute(CommandManager.java:401)
      at org.locationtech.udig.project.command.CommandManager$Executor.run(CommandManager.java:326)
      at org.locationtech.udig.project.command.CommandManager$Executor.run(CommandManager.java:312)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

      !ENTRY org.eclipse.ui 4 0 2015-02-04 23:11:10.337
      !MESSAGE Unhandled event loop exception
      !STACK 0
      java.lang.NullPointerException
      at org.locationtech.udig.project.ui.internal.actions.Delete.executeCommand(Delete.java:212)
      at org.locationtech.udig.project.ui.internal.actions.Delete.operate(Delete.java:202)
      at org.locationtech.udig.project.ui.internal.actions.Delete.run(Delete.java:149)
      at org.locationtech.udig.project.ui.internal.LayersView$15.run(LayersView.java:839)
      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      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$5.handleEvent(ActionContributionItem.java:411)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              harrison.grundy codehaus (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: