Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-891

A schema project containing a reference to a deleted connection makes the perspective completely unusable

    XMLWordPrintableJSON

Details

    Description

      If I switch to the Schema perspective, I can't anymore load or create Schema projects : I get a NPE :

      !ENTRY org.eclipse.jface 4 2 2013-03-20 10:58:37.177
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
      !STACK 0
      java.lang.NullPointerException
      at org.apache.directory.studio.schemaeditor.model.io.ProjectsExporter.addProject(ProjectsExporter.java:132)
      at org.apache.directory.studio.schemaeditor.model.io.ProjectsExporter.toDocument(ProjectsExporter.java:91)
      at org.apache.directory.studio.schemaeditor.PluginUtils.saveProjects(PluginUtils.java:255)
      at org.apache.directory.studio.schemaeditor.Activator$1.openProjectChanged(Activator.java:146)
      at org.apache.directory.studio.schemaeditor.controller.ProjectsHandler.notifyOpenProjectChanged(ProjectsHandler.java:357)
      at org.apache.directory.studio.schemaeditor.controller.ProjectsHandler.openProject(ProjectsHandler.java:196)
      at org.apache.directory.studio.schemaeditor.controller.ProjectsViewController$3.doubleClick(ProjectsViewController.java:213)
      at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:845)
      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.StructuredViewer.fireDoubleClick(StructuredViewer.java:843)
      at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:1134)
      at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1246)
      at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249)
      at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:246)
      at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:307)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4134)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
      at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3980)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3619)
      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.apache.directory.studio.Application.start(Application.java:51)
      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:353)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
      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:629)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

      Attachments

        Activity

          People

            pamarcelot Pierre-Arnaud Marcelot
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: