1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

fixed NPE.

This commit is contained in:
Warren Paul 2010-02-19 16:40:26 +00:00
parent 399db5247a
commit 135c85133a

View file

@ -58,7 +58,7 @@ public class CDIDisassemblyRetrieval implements IDisassemblyRetrieval {
}
else if (startAddress != null) {
mixedInstructions= cdiTarget.getMixedInstructions(startAddress, endAddress);
if (mixedInstructions.length == 0) {
if (mixedInstructions == null || mixedInstructions.length == 0) {
mixedInstructions= null;
asmInstructions= cdiTarget.getInstructions(startAddress, endAddress);
} else if (mixedInstructions.length == 1 && mixedInstructions[0].getInstructions().length == 0) {