mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 00:45:28 +02:00
Defect 286315.
This commit is contained in:
parent
aebfe7a190
commit
12786b9330
1 changed files with 6 additions and 1 deletions
|
@ -584,7 +584,7 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IL
|
|||
|
||||
};
|
||||
|
||||
IMemoryBlock block = retrieval.getMemoryBlock(0, 1024) ;
|
||||
IMemoryBlock block = null;
|
||||
if(retrieval instanceof IAdaptable)
|
||||
{
|
||||
IMemoryBlockRetrievalExtension retrievalExtension = (IMemoryBlockRetrievalExtension)
|
||||
|
@ -593,6 +593,11 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IL
|
|||
block = retrievalExtension.getExtendedMemoryBlock("0", context); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
if ( block == null ) {
|
||||
MemoryBrowserPlugin.getDefault().getLog().log(new Status(Status.ERROR, MemoryBrowserPlugin.PLUGIN_ID, "Extended Memory Block could not be obtained")); //$NON-NLS-1$
|
||||
return;
|
||||
}
|
||||
|
||||
fCurrentContainers.add(container);
|
||||
rendering.init(container, block);
|
||||
rendering.createControl(tab.getParent());
|
||||
|
|
Loading…
Add table
Reference in a new issue