Skip to content

Commit cb6b12f

Browse files
committed
Fix NullPointerException when scope failure
If a scope extraction fails extract method can return null. need to add a check against null at call sire
1 parent d184301 commit cb6b12f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/symbol/SymbolAggregator.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ public void parseClass(
124124
}
125125
LOGGER.debug("Extracting Symbols from: {}, located in: {}", className, jarName);
126126
Scope jarScope = SymbolExtractor.extract(classfileBuffer, jarName);
127+
if (jarScope == null) {
128+
return;
129+
}
127130
jarScope = applyFilters(jarScope);
128131
addJarScope(jarScope, false);
129132
symDBReport.incClassCount(jarName);

0 commit comments

Comments
 (0)