From f8ca90639359e5a4ffa9dd804cc450f4118a9739 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Thu, 25 Jun 2020 12:31:10 +0200 Subject: [PATCH] Fixed NPE when Settings.clsi is defined but Settings.clsi.docker is not --- services/clsi/app/js/CompileManager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/clsi/app/js/CompileManager.js b/services/clsi/app/js/CompileManager.js index 8cd7797a98..73db649948 100644 --- a/services/clsi/app/js/CompileManager.js +++ b/services/clsi/app/js/CompileManager.js @@ -520,7 +520,9 @@ module.exports = CompileManager = { compileName, command, directory, - Settings.clsi != null ? Settings.clsi.docker.image : undefined, + Settings.clsi && Settings.clsi.docker + ? Settings.clsi.docker.image + : undefined, timeout, {}, compileGroup,