GP-1276: avoiding the stack overflow

This commit is contained in:
d-millar 2021-09-02 14:58:06 -04:00
parent 928bc5508a
commit bace9936f6

View file

@ -162,7 +162,7 @@ public class ProgramByteViewerComponentProvider extends ByteViewerComponentProvi
@Override
public String getTextSelection() {
return getTextSelection();
return getCurrentTextSelection();
}
private void setSelection(ProgramSelection selection, boolean notify) {
@ -433,8 +433,7 @@ public class ProgramByteViewerComponentProvider extends ByteViewerComponentProvi
}
/**
* Called when the memory in the current program changes, from the domain
* object listener.
* Called when the memory in the current program changes, from the domain object listener.
*/
void memoryConfigurationChanged() {
ProgramLocation location = currentLocation;
@ -519,6 +518,7 @@ public class ProgramByteViewerComponentProvider extends ByteViewerComponentProvi
/**
* Gets the text of the current {@link ProgramSelection}
*
* @return the text
*/
String getCurrentTextSelection() {