From 98f9e51dfde2a07c4fbfb7ef42e1d922e7b04875 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Sun, 26 Feb 2017 22:23:51 +0800 Subject: task returning empty seq threw exception --- stage2/Lib.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stage2') 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) } -- cgit v1.2.3