From 57e7f4d2ab9decad6841b49fef0ddb656b212edb Mon Sep 17 00:00:00 2001 From: "Keith W. Campbell" Date: Thu, 14 Jul 2022 17:34:55 -0400 Subject: [PATCH] Avoid NullPointerException reading SONAME Signed-off-by: Keith W. Campbell --- .../src/com/ibm/j9ddr/corereaders/elf/ELFFileReader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/elf/ELFFileReader.java b/debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/elf/ELFFileReader.java index b71ed659fa8..da8b176fd54 100644 --- a/debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/elf/ELFFileReader.java +++ b/debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/elf/ELFFileReader.java @@ -801,6 +801,9 @@ private void markTruncated() { */ public String readSONAME(ELFFileReader coreFileReader) { ProgramHeaderEntry dynamicTableEntry = getDynamicTableEntry(); + if (dynamicTableEntry == null) { + return null; + } try { long imageStart = dynamicTableEntry.virtualAddress;