Skip to content

Commit

Permalink
See two crashes:
Browse files Browse the repository at this point in the history
- calling getText() early, when editor is not initialized yet
- calling setText() multiple times consecutively
  • Loading branch information
cpfeiffer committed Apr 7, 2022
1 parent 1762b39 commit 092e69d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public String getJavascriptToExecute() {

// add additional controls for showing interactions
createControlPanel(parent, editor);
editor.getText();
}

protected void createControlPanel(Composite parent, final RichTextEditor editor) {
Expand Down Expand Up @@ -131,6 +132,7 @@ public void keyPressed(KeyEvent e) {
@Override
public void widgetSelected(SelectionEvent e) {
editor.setText(input.getText());
editor.setText(input.getText());
}
});

Expand Down

0 comments on commit 092e69d

Please sign in to comment.