Commit 554cdfa6 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Throw Exception when root is no flexiprep

parent e274b6df
......@@ -45,7 +45,9 @@ class FlexiprepSummary(val root: Configurable) extends InProcessFunction with Co
var fastqcR1after: Fastqc = _
var fastqcR2after: Fastqc = _
var flexiprep: Flexiprep = root.asInstanceOf[Flexiprep]
var flexiprep: Flexiprep = if (root.isInstanceOf[Flexiprep]) root.asInstanceOf[Flexiprep] else {
throw new IllegalStateException("Root is no instance of Flexiprep")
}
var resources:Map[String, Json] = Map()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment