We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20427e6 commit 72add90Copy full SHA for 72add90
src/main/scala/de/upb/cs/swt/delphi/cli/CsvOutput.scala
@@ -51,10 +51,11 @@ class CsvOutput(config: Config) {
51
}
52
53
def resultsToCsv(results : Seq[Result]) : Seq[Array[String]] = {
54
- if (results.isEmpty) {
55
- Seq.empty[Array[String]]
+ val headOption = results.headOption.getOrElse()
+ if (!headOption.isInstanceOf[Result]) {
56
+ Seq.empty[Array[String]]
57
} else {
- val fieldNames = results.headOption.get.fieldNames()
58
+ val fieldNames = headOption.asInstanceOf[Result].fieldNames()
59
val tableHeader : Array[String] =
60
fieldNames.+:("discovered at").+:("version").+:("groupId").+:("artifactId").+:("source").+:("Id").toArray
61
results.map {
0 commit comments