Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 3.3.0.M4
    • Fix Version/s: 3.3.0.M4
    • Component/s: cdi
    • Labels:
      None

      Description

      I got this exeption when I'm trying to Ctrl+Click on every @Inject ...

      java.lang.NullPointerException
      	at org.jboss.tools.cdi.internal.core.impl.CDIProject.collectObserverMethods(CDIProject.java:905)
      	at org.jboss.tools.cdi.internal.core.impl.CDIProject.resolveObserverMethods(CDIProject.java:891)
      	at org.jboss.tools.cdi.text.ext.hyperlink.EventAndObserverMethodHyperlinkDetector.detectHyperlinks(EventAndObserverMethodHyperlinkDetector.java:104)
      	at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
      	at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:286)
      	at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:258)
      	at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:462)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:211)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
      	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
      	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
      	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
      	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
      	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:344)
      	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)
      

        Gliffy Diagrams

        1. JBIDE-9951.patch
          1 kB
          Viacheslav Kabanovich

          Issue Links

            Activity

            Hide
            maxandersen Max Rydahl Andersen added a comment -

            The patch seem to only have whitespace diffs ?

            Show
            maxandersen Max Rydahl Andersen added a comment - The patch seem to only have whitespace diffs ?
            Hide
            scabanovich Viacheslav Kabanovich added a comment -

            Mostly, yes. Just two bytes separate it from a miracle. The number of lines are moved inside

            if(eventType != null) {
            ...
            }
            

            where they belong to.

            Show
            scabanovich Viacheslav Kabanovich added a comment - Mostly, yes. Just two bytes separate it from a miracle. The number of lines are moved inside if(eventType != null) { ... } where they belong to.
            Hide
            maxandersen Max Rydahl Andersen added a comment -

            okey - butthere is no such code in the JBIDE-9951.patch file...

            Show
            maxandersen Max Rydahl Andersen added a comment - okey - butthere is no such code in the JBIDE-9951 .patch file...
            Hide
            maxandersen Max Rydahl Andersen added a comment -

            ok - reread and spotted the subtle whitespace diff please apply to branch and set fix version accordingly - thanks.

            Show
            maxandersen Max Rydahl Andersen added a comment - ok - reread and spotted the subtle whitespace diff please apply to branch and set fix version accordingly - thanks.
            Hide
            maxandersen Max Rydahl Andersen added a comment -

            ok - reread and spotted the subtle whitespace diff please apply to branch and set fix version accordingly - thanks.

            Show
            maxandersen Max Rydahl Andersen added a comment - ok - reread and spotted the subtle whitespace diff please apply to branch and set fix version accordingly - thanks.
            Hide
            maxandersen Max Rydahl Andersen added a comment -

            ok - reread and spotted the subtle whitespace diff please apply to branch and set fix version accordingly - thanks.

            Show
            maxandersen Max Rydahl Andersen added a comment - ok - reread and spotted the subtle whitespace diff please apply to branch and set fix version accordingly - thanks.
            Hide
            akazakov Alexey Kazakov added a comment -

            Fixed in trunk and M4 branch.

            Show
            akazakov Alexey Kazakov added a comment - Fixed in trunk and M4 branch.
            Hide
            jjankovi Jaroslav Jankovič added a comment -

            Not reproducible on JBDS 5.0.0.v201110242253R-H40-M4. Closing Jira.

            Show
            jjankovi Jaroslav Jankovič added a comment - Not reproducible on JBDS 5.0.0.v201110242253R-H40-M4. Closing Jira.

              People

              • Assignee:
                scabanovich Viacheslav Kabanovich
                Reporter:
                akazakov Alexey Kazakov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development