| Summary: | NPE when select Hyperlink from MultipleHyperlinkPresenter List | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Frank Becker <eclipse> |
| Component: | SWT | Assignee: | Scott Kovatch <skovatch> |
| Status: | VERIFIED FIXED | QA Contact: | Silenio Quarti <Silenio_Quarti> |
| Severity: | normal | ||
| Priority: | P3 | CC: | skovatch |
| Version: | 3.6 | ||
| Target Milestone: | 3.7 M5 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 199283 | ||
|
Description
Frank Becker
Do you have an example of where this happens? Any steps to reproduce? (In reply to comment #1) > Do you have an example of where this happens? Any steps to reproduce? Yes please see attachment https://bugs.eclipse.org/bugs/attachment.cgi?id=176402 of https://bugs.eclipse.org/bugs/show_bug.cgi?id=199283 Requested a new mylyn that shows the bug happening. The stack trace is out of date compared to HEAD of Cocoa SWT. Here the Stack Trace from Eclipse 3.7.0 I20101208-1300 (3.7M4) java.lang.NullPointerException at org.eclipse.swt.widgets.Shell.setWindowVisible(Shell.java:1933) at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1855) at org.eclipse.jface.text.AbstractInformationControl.setVisible(AbstractInformationControl.java:505) at org.eclipse.jface.text.AbstractInformationControlManager.hideInformationControl(AbstractInformationControlManager.java:1242) at org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter$MultipleHyperlinkHoverManager.hideInformationControl(MultipleHyperlinkPresenter.java:672) at org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter$LinkListInformationControl.openSelectedLink(MultipleHyperlinkPresenter.java:365) at org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter$LinkListInformationControl.access$1(MultipleHyperlinkPresenter.java:359) at org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter$4.mouseUp(MultipleHyperlinkPresenter.java:335) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:213) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3955) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1435) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1443) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1255) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3801) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3454) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) 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:369) 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:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) (In reply to comment #4) > Here the Stack Trace from Eclipse 3.7.0 I20101208-1300 (3.7M4) > java.lang.NullPointerException > at org.eclipse.swt.widgets.Shell.setWindowVisible(Shell.java:1933) > at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1855) > at Thanks, this is helpful. The only way this can happen is if the shell was disposed, so I'm checking in a fix that should take care of it. Reopen it if you still hit this, but It's now in HEAD > 20110119. I verified this with 3.7 N20110119-2000 Thanks!!! |