Fix NPE.
diff --git a/org.eclipse.cdt.debug.edc/src/org/eclipse/cdt/debug/edc/internal/symbols/dwarf/DwarfInfoReader.java b/org.eclipse.cdt.debug.edc/src/org/eclipse/cdt/debug/edc/internal/symbols/dwarf/DwarfInfoReader.java index ce309e6..13dbc0e 100644 --- a/org.eclipse.cdt.debug.edc/src/org/eclipse/cdt/debug/edc/internal/symbols/dwarf/DwarfInfoReader.java +++ b/org.eclipse.cdt.debug.edc/src/org/eclipse/cdt/debug/edc/internal/symbols/dwarf/DwarfInfoReader.java
@@ -3158,9 +3158,11 @@ if (actualForm == DwarfConstants.DW_FORM_data4) { // location list Collection<LocationEntry> entryList = getLocationRecord(locationValue.getValueAsLong()); - return new LocationList(entryList.toArray(new LocationEntry[entryList.size()]), - exeReader.getByteOrder(), - currentCUHeader.addressSize, currentParentScope); + if (entryList != null) { + return new LocationList(entryList.toArray(new LocationEntry[entryList.size()]), + exeReader.getByteOrder(), + currentCUHeader.addressSize, currentParentScope); + } } else if (actualForm == DwarfConstants.DW_FORM_block || actualForm == DwarfConstants.DW_FORM_block1 || actualForm == DwarfConstants.DW_FORM_block2