Skip to content

Commit

Permalink
Fix NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
ekharkunov committed Nov 4, 2024
1 parent b8db285 commit e9de656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/main/java/com/defold/extender/Extender.java
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@ private List<File> linkEngine(List<String> symbols, Map<String, Object> linkCont
if (this.withSymbols) {
LOGGER.info("Extracting symbols");
String symbolCmd = platformConfig.symbolCmd;
if (symbolCmd != null && !symbolCmd.equals("")) {
if (symbolCmd != null && !symbolCmd.isBlank()) {
Map<String, Object> symbolContext = createContext(linkContext);
symbolContext.put("src", ExtenderUtil.getRelativePath(jobDirectory, exe));

Expand All @@ -1449,7 +1449,7 @@ private List<File> linkEngine(List<String> symbols, Map<String, Object> 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;
}
}
Expand Down

0 comments on commit e9de656

Please sign in to comment.