[
https://issues.jboss.org/browse/JBIDE-13321?page=com.atlassian.jira.plugi...
]
Fred Bricon commented on JBIDE-13321:
-------------------------------------
In that method, we check if the current project (the one we're installing the JAX-RS
Facet to) is a child of an existing workspace project.
Well for some reason, for one of the potential parent projects, project.getLocation()
returns null (which can happen, according to the API). So I believe Pete had a
non-conventional project in his workspace at the time that bug occured. I have no idea how
to reproduce though, all I can do is add a null-check for project.getLocation(), which is
totally fine.
NPE from JBoss Maven tools
--------------------------
Key: JBIDE-13321
URL:
https://issues.jboss.org/browse/JBIDE-13321
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: maven, Webservices
Environment: JBDS 6.0.0.GA
Reporter: Pete Muir
Assignee: Fred Bricon
When I load the kitchensink quickstart in JBDS, and run Update Project from the Maven
menu, I get this NPE :-(
{code}
java.lang.NullPointerException
at org.jboss.tools.maven.core.ProjectUtil.refreshHierarchy(ProjectUtil.java:75)
at
org.jboss.tools.maven.jaxrs.configurators.JaxrsProjectConfigurator.installJaxRsFacet(JaxrsProjectConfigurator.java:141)
at
org.jboss.tools.maven.jaxrs.configurators.JaxrsProjectConfigurator.installFacets(JaxrsProjectConfigurator.java:127)
at
org.jboss.tools.maven.jaxrs.configurators.JaxrsProjectConfigurator.configureInternal(JaxrsProjectConfigurator.java:117)
at
org.jboss.tools.maven.jaxrs.configurators.JaxrsProjectConfigurator.configure(JaxrsProjectConfigurator.java:82)
at
org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:109)
at
org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:414)
at
org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:351)
at
org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:74)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira