1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fixed NPE when there are no memory spaces

This commit is contained in:
John Cortell 2010-03-12 19:49:24 +00:00
parent 78bbafea7e
commit 918fa29658

View file

@ -601,7 +601,7 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IM
{
fGotoAddressBarControl.setVisible(true);
String addressSpaces[][] = getAddressSpaces(retrieval);
if(addressSpaces[0].length > 0)
if(addressSpaces.length > 0)
{
fGotoAddressSpaceControl.setVisible(true);
fGotoAddressSpaceControl.setItems(addressSpaces[0]);