Skip to content

Ghidra is a software reverse engineering (SRE) framework

fix: restore debugInfo null check

Emerson Pinter8011144b9699
diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/app/util/pdb/pdbapplicator/PdbAddressManager.java b/Ghidra/Features/PDB/src/main/java/ghidra/app/util/pdb/pdbapplicator/PdbAddressManager.java
index a00b67decb..ddbe3bf35a 100644
--- a/Ghidra/Features/PDB/src/main/java/ghidra/app/util/pdb/pdbapplicator/PdbAddressManager.java
+++ b/Ghidra/Features/PDB/src/main/java/ghidra/app/util/pdb/pdbapplicator/PdbAddressManager.java
@@ -358,6 +358,9 @@ public class PdbAddressManager {
private void determineMemoryBlocks() throws CancelledException {
AbstractPdb pdb = applicator.getPdb();
PdbDebugInfo debugInfo = pdb.getDebugInfo();
+ if(debugInfo == null) {
+ return;
+ }
segmentMapList = debugInfo.getSegmentMapList();
if (debugInfo instanceof PdbNewDebugInfo) {
DebugData debugData = ((PdbNewDebugInfo) debugInfo).getDebugData();