mirror of https://github.com/apache/maven.git
o add a check for the fake session used in testing.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@774451 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
177d3d54d5
commit
73fc3f1b0c
|
@ -67,7 +67,11 @@ public class MavenSession
|
|||
this.container = container;
|
||||
this.request = request;
|
||||
this.result = result;
|
||||
this.currentProject = projects.get( 0 );
|
||||
//TODO: Current for testing classes creating the session
|
||||
if ( projects.size() > 0 )
|
||||
{
|
||||
this.currentProject = projects.get( 0 );
|
||||
}
|
||||
this.projects = projects;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue