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

NullPointerException when clicking a certificate on the Certificate Validation preference page

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M10 (2.0.0.v20151221-M10)
    • Fix Version/s: 2.0.0-M11, 2.0.0-M12
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 10 Anniversary Update, Oracle JDK 8u102 64-bit

      Description

      • Navigate to Window > Preferences > Apache Directory Studio > Connections > Certificate Validation
      • Click one of the certificates in the list

      Result: a NullPointerException. After that it is not possible to use the page to view/remove any of the configured certificates.

        Issue Links

          Activity

          Hide
          ricqr Rick Riemer added a comment -

          The following stacktrace is available in the Error Log:

          !ENTRY org.eclipse.jface 4 2 2016-08-26 11:22:21.985
          !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
          !STACK 0
          java.lang.NullPointerException
          at org.apache.directory.studio.connection.ui.widgets.CertificateListComposite$1.selectionChanged(CertificateListComposite.java:114)
          at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163)
          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
          at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
          at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
          at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
          at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2171)
          at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1202)
          at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1231)
          at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:242)
          at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:236)
          at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:408)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
          at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
          at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
          at org.eclipse.jface.window.Window.open(Window.java:808)
          at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:221)
          at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66)
          at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)
          at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
          at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
          at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
          at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
          at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
          at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
          at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
          at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
          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:134)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
          at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

          Show
          ricqr Rick Riemer added a comment - The following stacktrace is available in the Error Log: !ENTRY org.eclipse.jface 4 2 2016-08-26 11:22:21.985 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException at org.apache.directory.studio.connection.ui.widgets.CertificateListComposite$1.selectionChanged(CertificateListComposite.java:114) at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160) at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2171) at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1202) at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1231) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:242) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:236) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:408) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.jface.window.Window.runEventLoop(Window.java:832) at org.eclipse.jface.window.Window.open(Window.java:808) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:221) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66) at org.eclipse.jface.action.Action.runWithEvent(Action.java:519) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 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:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
          Hide
          ricqr Rick Riemer added a comment -

          I've just downloaded a snapshot of directory studio (ApacheDirectoryStudio-2.0.0-SNAPSHOT-win32.win32.x86_64.zip), and this seems to no longer have this issue.

          You can probably close this issue as fixed in M11

          Show
          ricqr Rick Riemer added a comment - I've just downloaded a snapshot of directory studio (ApacheDirectoryStudio-2.0.0-SNAPSHOT-win32.win32.x86_64.zip), and this seems to no longer have this issue. You can probably close this issue as fixed in M11
          Hide
          elecharny Emmanuel Lecharny added a comment -

          Closing as it's fixed in M11

          Show
          elecharny Emmanuel Lecharny added a comment - Closing as it's fixed in M11

            People

            • Assignee:
              Unassigned
              Reporter:
              ricqr Rick Riemer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development