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:
Jason van Zyl 2009-05-13 17:58:59 +00:00
parent 177d3d54d5
commit 73fc3f1b0c
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}