Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDR: Fix NPE in StackMap logging #17264

Merged
merged 1 commit into from
Apr 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions debugtools/DDR_VM/src/com/ibm/j9ddr/vm29/j9/stackmap/StackMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -786,11 +786,16 @@ private int outputStackMap(int[] resultsArray, int bits) throws CorruptDataExcep

buffer.append("outputStackMap. bits = ");
buffer.append(bits);
buffer.append(" resultsArray size = " + resultsArray.length);
buffer.append(" result: ");

for (int i=0;i < resultsArray.length; i++) {
buffer.append(Integer.toHexString(resultsArray[i]));
if (resultsArray != null) {
buffer.append(" resultsArray size = ");
buffer.append(resultsArray.length);
buffer.append(" result: ");

for (int i=0;i < resultsArray.length; i++) {
buffer.append(Integer.toHexString(resultsArray[i]));
}
} else {
buffer.append(" resultsArray = null");
}

logger.logp(FINE,"StackMap_V1","outputStackMap",buffer.toString());
Expand Down