diff options
author | Lex Spoon <lex@lexspoon.org> | 2007-07-24 07:27:14 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2007-07-24 07:27:14 +0000 |
commit | 6348be15352e70351b019a5b9e5add34c4745248 (patch) | |
tree | 83ea9f7090c36442cef5b914da0859db227f5db1 | |
parent | 16d3cf1f8f22c04559145b35bb5f6c0aacfb0d8c (diff) | |
download | scala-6348be15352e70351b019a5b9e5add34c4745248.tar.gz scala-6348be15352e70351b019a5b9e5add34c4745248.tar.bz2 scala-6348be15352e70351b019a5b9e5add34c4745248.zip |
handle the case that a connection to the compil...
handle the case that a connection to the compilation daemon fails
-rw-r--r-- | src/compiler/scala/tools/nsc/ScriptRunner.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/ScriptRunner.scala b/src/compiler/scala/tools/nsc/ScriptRunner.scala index e8f89a701a..cceed5b5c9 100644 --- a/src/compiler/scala/tools/nsc/ScriptRunner.scala +++ b/src/compiler/scala/tools/nsc/ScriptRunner.scala @@ -236,6 +236,9 @@ class ScriptRunner { List("-Xscript", scriptMain(settings), scriptFile)) val socket = compileSocket.getOrCreateSocket("") + if (socket eq null) + return false + val out = new PrintWriter(socket.getOutputStream(), true) val in = new BufferedReader(new InputStreamReader(socket.getInputStream())) |