Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-624

NPE in the SearchLogsViewUniversalListener.java under rare circumstances when selecting a connection

    Details

      Description

      Sometimes when I select a connection, I get this NPE:
      java.lang.NullPointerException
      at org.apache.directory.studio.ldapbrowser.ui.views.searchlogs.SearchLogsViewUniversalListener.setInput(SearchLogsViewUniversalListener.java:161)
      at org.apache.directory.studio.ldapbrowser.ui.views.searchlogs.SearchLogsViewUniversalListener$1.selectionChanged(SearchLogsViewUniversalListener.java:90)
      at org.eclipse.ui.internal.AbstractPartSelectionTracker$2.run(AbstractPartSelectionTracker.java:142)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.runtime.Platform.run(Platform.java:888)
      at org.eclipse.ui.internal.AbstractPartSelectionTracker.firePostSelection(AbstractPartSelectionTracker.java:140)
      at org.eclipse.ui.internal.WindowPartSelectionTracker$2.selectionChanged(WindowPartSelectionTracker.java:47)
      at org.eclipse.ui.internal.AbstractPartSelectionTracker$2.run(AbstractPartSelectionTracker.java:142)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.runtime.Platform.run(Platform.java:888)
      at org.eclipse.ui.internal.AbstractPartSelectionTracker.firePostSelection(AbstractPartSelectionTracker.java:140)
      at org.eclipse.ui.internal.PagePartSelectionTracker$2.selectionChanged(PagePartSelectionTracker.java:55)
      at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:864)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.runtime.Platform.run(Platform.java:888)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:862)
      at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1175)
      at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1200)
      at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:251)
      at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:245)
      at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:419)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3405)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3102)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
      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:368)
      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:559)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Pierre-Arnaud Marcelot
            Reporter:
            Pierre-Arnaud Marcelot
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development