Author: snjeza
Date: 2009-12-09 15:35:37 -0500 (Wed, 09 Dec 2009)
New Revision: 19165
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5433 An exception is thrown when creating
mavenized Seam Web project without test project
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java 2009-12-09
18:54:02 UTC (rev 19164)
+++
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java 2009-12-09
20:35:37 UTC (rev 19165)
@@ -183,6 +183,9 @@
private void configureTestProject(IDataModel m2FacetModel,
IDataModel seamFacetModel) {
IProject project =
ResourcesPlugin.getWorkspace().getRoot().getProject(testProjectName);
+ if (project == null || !project.exists()) {
+ return;
+ }
IFile pom = project.getFile(IMavenConstants.POM_FILE_NAME);
IJavaProject javaProject = JavaCore.create(project);
if (!pom.exists()) {