We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13e52f1 commit 660e132Copy full SHA for 660e132
src/main/java/mindustrytool/workflow/Workflow.java
@@ -115,8 +115,10 @@ public void writeWorkflowData(JsonNode data) {
115
116
private void loadWorkflowFromFile() {
117
String content = WORKFLOW_FILE.readString();
118
- context = JsonUtils.readJsonAsClass(content, WorkflowContext.class);
119
- load(context);
+ if (!content.isBlank()) {
+ context = JsonUtils.readJsonAsClass(content, WorkflowContext.class);
120
+ load(context);
121
+ }
122
}
123
124
private void writeWorkflowToFile() {
0 commit comments