mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Fixed NPE when there are no memory spaces
This commit is contained in:
parent
78bbafea7e
commit
918fa29658
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IM
|
||||||
{
|
{
|
||||||
fGotoAddressBarControl.setVisible(true);
|
fGotoAddressBarControl.setVisible(true);
|
||||||
String addressSpaces[][] = getAddressSpaces(retrieval);
|
String addressSpaces[][] = getAddressSpaces(retrieval);
|
||||||
if(addressSpaces[0].length > 0)
|
if(addressSpaces.length > 0)
|
||||||
{
|
{
|
||||||
fGotoAddressSpaceControl.setVisible(true);
|
fGotoAddressSpaceControl.setVisible(true);
|
||||||
fGotoAddressSpaceControl.setItems(addressSpaces[0]);
|
fGotoAddressSpaceControl.setItems(addressSpaces[0]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue