Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Ryall2007-12-31 16:23:19 -0500
committerKen Ryall2007-12-31 16:23:19 -0500
commit3e7980894dba802965b23804a4f5f215d60c4467 (patch)
tree6a56a43c776afa4920da1dff36bb5638bfaa5ae4
parent7cf0b28ece14cd471cecbb364c62d3654aa5db19 (diff)
downloadorg.eclipse.cdt-3e7980894dba802965b23804a4f5f215d60c4467.tar.gz
org.eclipse.cdt-3e7980894dba802965b23804a4f5f215d60c4467.tar.xz
org.eclipse.cdt-3e7980894dba802965b23804a4f5f215d60c4467.zip
Fix NPE.
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
index 40e0402fe6..bf57660c59 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
@@ -189,7 +189,7 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
*/
public MemoryByte[] getBytesFromAddress( BigInteger address, long length ) throws DebugException {
ICDIMemoryBlock cdiBlock = getCDIBlock();
- if ( cdiBlock == null ||
+ if ( fBytes == null || cdiBlock == null ||
cdiBlock.getStartAddress().compareTo( address ) > 0 ||
cdiBlock.getStartAddress().add( BigInteger.valueOf( cdiBlock.getLength()/cdiBlock.getWordSize() ) ).compareTo( address.add( BigInteger.valueOf( length ) ) ) < 0 ) {
synchronized( this ) {

Back to the top