Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
Fix error when workspace directory doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed May 20, 2021
1 parent f91e144 commit d3a848b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
package com.github.serivesmejia.eocvsim.workspace

import com.github.serivesmejia.eocvsim.EOCVSim
import com.github.serivesmejia.eocvsim.pipeline.compiler.CompiledPipelineManager
import com.github.serivesmejia.eocvsim.util.event.EventHandler
import com.github.serivesmejia.eocvsim.util.FileWatcher
import com.github.serivesmejia.eocvsim.util.Log
Expand Down Expand Up @@ -168,7 +169,12 @@ class WorkspaceManager(val eocvSim: EOCVSim) {
}
}

workspaceFile = File(eocvSim.config.workspacePath)
val file = File(eocvSim.config.workspacePath)
if(file.exists())
workspaceFile = file
else
workspaceFile = CompiledPipelineManager.DEF_WORKSPACE_FOLDER

Log.blank()
}

Expand Down

0 comments on commit d3a848b

Please sign in to comment.