Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-16544

NullPointerException in JsfJSPTagNameHyperlinkDetector.validateNameSpace()

XMLWordPrintable

      Steps to reproduce:
      EXECUTE: import angular-phonecat example project by as General Project (See: http://docs.angularjs.org/tutorial, Repo on GitHub: https://github.com/angular/angular-phonecat.git). Note: you should created a .project file in the project's root folder with the following content due to make it possible to import it with File->Import->General->Import Existing Project into Workspace:

      <?xml version="1.0" encoding="UTF-8"?>
      <projectDescription>
      	<name>angular-phonecat</name>
      	<comment></comment>
      	<projects>
      	</projects>
      	<buildSpec>
      	</buildSpec>
      	<natures>
      	</natures>
      </projectDescription>
      

      EXECUTE: Open <project root>/app/partial/phone-detail.html page in JBossTools HTML Editor
      EXECUTE: Press Ctrl key while hovering the mouse over the name of any 'ng-*' attribute of tag <img> (like ''ng-src', 'ng-repeat' or 'ng-class')
      ASSERT: At least no error messages in Error Log, probably working hyperlink (there may be no hyperlinks at all)
      FAIL: The following error message appears in Error Log:.

      !ENTRY org.eclipse.ui 4 0 2014-02-12 19:13:59.199
      !MESSAGE Unhandled event loop exception
      !STACK 0
      java.lang.NullPointerException
      	at org.jboss.tools.jsf.text.ext.hyperlink.JsfJSPTagNameHyperlinkDetector.validateNameSpace(JsfJSPTagNameHyperlinkDetector.java:157)
      	at org.jboss.tools.jsf.text.ext.hyperlink.JsfJSPTagNameHyperlinkDetector.validateComponent(JsfJSPTagNameHyperlinkDetector.java:139)
      	at org.jboss.tools.jsf.text.ext.hyperlink.JsfJSPTagNameHyperlinkDetector.detectHyperlinks(JsfJSPTagNameHyperlinkDetector.java:120)
      	at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
      	at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
      	at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
      	at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4423)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3771)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3391)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:146)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:615)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:566)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:109)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:80)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:372)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:226)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
      

              vrubezhny Victor Rubezhny (Inactive)
              vrubezhny Victor Rubezhny (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: