diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-26 22:23:51 +0800 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-27 18:44:52 +0800 |
commit | 98f9e51dfde2a07c4fbfb7ef42e1d922e7b04875 (patch) | |
tree | e6cd2b63067056256c1cf70df5d0d267dfca517c /stage2 | |
parent | 5b97caf294b5aa093f11a16be3903916d72bb3e7 (diff) | |
download | cbt-98f9e51dfde2a07c4fbfb7ef42e1d922e7b04875.tar.gz cbt-98f9e51dfde2a07c4fbfb7ef42e1d922e7b04875.tar.bz2 cbt-98f9e51dfde2a07c4fbfb7ef42e1d922e7b04875.zip |
task returning empty seq threw exception
Diffstat (limited to 'stage2')
-rw-r--r-- | stage2/Lib.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala index 07f2cf6..d72c82f 100644 --- a/stage2/Lib.scala +++ b/stage2/Lib.scala @@ -192,7 +192,7 @@ final class Lib(val logger: Logger) extends Stage1Lib(logger){ case code if code.getClass.getSimpleName == "ExitCode" => // FIXME: ExitCode needs to be part of the compatibility interfaces (None, Some(ExitCode(Stage0Lib.get(code,"integer").asInstanceOf[Int])), None) - case Seq(bs @ _*) if bs.forall(_.isInstanceOf[BaseBuild]) => + case Seq(b, bs @ _*) if (b +: bs).forall(_.isInstanceOf[BaseBuild]) => bs.map( b => callInternal(b.asInstanceOf[BaseBuild], members.tail, previous :+ taskName, context) ).head case _ => callInternal(result, members.tail, previous :+ taskName, context) } |