Thanks to visit codestin.com Credit goes to github.com
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 874bf03 commit e24fa31Copy full SHA for e24fa31
src/compiler/scala/tools/nsc/reporters/DisplayReporter.scala
@@ -107,7 +107,7 @@ object DisplayReporter {
107
108
/** Split a message into a prefix and an optional explanation that follows a line starting with `"----"`. */
109
private def splitting(msg: String, explaining: Boolean): String =
110
- if (msg.indexOf("\n----") > 0) {
+ if (msg != null && msg.indexOf("\n----") > 0) {
111
val (err, exp) = msg.lines.span(!_.startsWith("----"))
112
if (explaining) (err ++ exp.drop(1)).mkString("\n") else err.mkString("\n")
113
} else {
0 commit comments