From e9de65638cbb103a0392a9a72b429a159a8be4f9 Mon Sep 17 00:00:00 2001 From: Kharkunov Eugene Date: Mon, 4 Nov 2024 21:09:53 +0200 Subject: [PATCH] Fix NPE. --- server/src/main/java/com/defold/extender/Extender.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/com/defold/extender/Extender.java b/server/src/main/java/com/defold/extender/Extender.java index 8f505ce7..cc7bc004 100644 --- a/server/src/main/java/com/defold/extender/Extender.java +++ b/server/src/main/java/com/defold/extender/Extender.java @@ -1429,7 +1429,7 @@ private List linkEngine(List symbols, Map linkCont if (this.withSymbols) { LOGGER.info("Extracting symbols"); String symbolCmd = platformConfig.symbolCmd; - if (symbolCmd != null && !symbolCmd.equals("")) { + if (symbolCmd != null && !symbolCmd.isBlank()) { Map symbolContext = createContext(linkContext); symbolContext.put("src", ExtenderUtil.getRelativePath(jobDirectory, exe)); @@ -1449,7 +1449,7 @@ private List linkEngine(List symbols, Map linkCont // If we wish to grab the symbols, prepend the pattern (E.g. to "(.*dSYM)|(dmengine)") if (this.withSymbols) { String symbolsPattern = platformConfig.symbolsPattern; - if (!symbolsPattern.equals("")) { + if (symbolsPattern != null && !symbolsPattern.isBlank()) { zipContentPattern = symbolsPattern + "|" + zipContentPattern; } }