Commit 3a97ebf9 authored by Christina's avatar Christina
Browse files

handle null value

parent 95eb055f
Pipeline #432719 passed with stages
in 132 minutes and 17 seconds
......@@ -30,11 +30,12 @@ public class VadereSingleClientServer extends AbstractVadereServer {
Socket clientSocket = serverSocket.accept();
ClientHandler handler = new ClientHandler(serverSocket, new TraCISocket(clientSocket, trace), baseDir, guiSupport);
if (!scenarioPath.equals("")){
handler.setScenario(IOUtils.readTextFile(scenarioPath));
if (scenarioPath != null){
if (!scenarioPath.equals("")){
handler.setScenario(IOUtils.readTextFile(scenarioPath));
}
}
Thread t = new Thread(handler);
t.start();
t.join();
......
Markdown is supported
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