You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Seelmann (JIRA)" <ji...@apache.org> on 2007/10/11 23:08:50 UTC

[jira] Commented: (DIRSTUDIO-223) NullPointerException raised when adding values in the New Entry Wizard

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534159 ] 

Stefan Seelmann commented on DIRSTUDIO-223:
-------------------------------------------

Thanks Pierre-Arnaud for the fix. I just changed the return value null to the empty string to avoid another potential NPE.

http://svn.apache.org/viewvc?rev=583951&view=rev


> NullPointerException raised when adding values in the New Entry Wizard
> ----------------------------------------------------------------------
>
>                 Key: DIRSTUDIO-223
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-223
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-ldapbrowser
>            Reporter: Pierre-Arnaud Marcelot
>            Assignee: Pierre-Arnaud Marcelot
>            Priority: Blocker
>             Fix For: 1.1.0
>
>
> This bug does not affect 1.0.1 but the current trunk only.
> A NPE is raised when adding values in the New Entry Wizard.
> Here's the stacktrace:
> !ENTRY org.eclipse.jface 4 2 2007-10-11 13:08:38.037
> !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
> !STACK 0
> java.lang.NullPointerException
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.getLockIdentifier(AbstractEclipseJob.java:259)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.getLockIdentifier(AbstractEclipseJob.java:265)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.getLockIdentifiers(AbstractEclipseJob.java:234)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.shouldSchedule(AbstractEclipseJob.java:163)
> 	at org.eclipse.core.internal.jobs.InternalJob.schedule(InternalJob.java:367)
> 	at org.eclipse.core.runtime.jobs.Job.schedule(Job.java:435)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.execute(AbstractEclipseJob.java:152)
> 	at org.apache.directory.studio.valueeditors.ValueEditorManager.modifyValue(ValueEditorManager.java:619)
> 	at org.apache.directory.studio.ldapbrowser.common.widgets.entryeditor.EntryEditorWidgetCellModifier.modify(EntryEditorWidgetCellModifier.java:143)
> 	at org.eclipse.jface.viewers.ColumnViewer$2.setValue(ColumnViewer.java:265)
> 	at org.eclipse.jface.viewers.EditingSupport.saveCellEditorValue(EditingSupport.java:109)
> 	at org.eclipse.jface.viewers.ColumnViewerEditor.saveEditorValue(ColumnViewerEditor.java:375)
> 	at org.eclipse.jface.viewers.ColumnViewerEditor.applyEditorValue(ColumnViewerEditor.java:266)
> 	at org.eclipse.jface.viewers.ColumnViewerEditor$1.applyEditorValue(ColumnViewerEditor.java:136)
> 	at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:305)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> 	at org.eclipse.core.runtime.Platform.run(Platform.java:857)
> 	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
> 	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
> 	at org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.java:303)
> 	at org.eclipse.jface.viewers.TextCellEditor.handleDefaultSelection(TextCellEditor.java:294)
> 	at org.eclipse.jface.viewers.TextCellEditor$1.widgetDefaultSelected(TextCellEditor.java:147)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:112)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
> 	at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
> 	at org.eclipse.jface.window.Window.open(Window.java:796)
> 	at org.apache.directory.studio.ldapbrowser.ui.actions.NewEntryAction.run(NewEntryAction.java:98)
> 	at org.apache.directory.studio.ldapbrowser.common.actions.proxy.BrowserActionProxy.run(BrowserActionProxy.java:253)
> 	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
> 	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
> 	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
> 	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
> 	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
> 	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:585)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1144)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.