Skip to content

Commit

Permalink
[ESQUE-8] Fix NPE when changing subject
Browse files Browse the repository at this point in the history
  • Loading branch information
patschuh committed Feb 25, 2019
1 parent 9cd7569 commit 3974ce0
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -23,6 +23,10 @@ public void setup(String schemaregistryUrl) {
schemaRegistryRestService = new RestService(schemaregistryUrl);
try {
versionComboBox.getSelectionModel().selectedItemProperty().addListener(((observable1, oldValue1, newValue1) -> {
if(newValue1 == null){
schemaTextArea.setText(null);
return;
}
try {
schemaTextArea.setText(schemaRegistryRestService.getVersion(subjectListView.getSelectionModel().getSelectedItem(), newValue1).getSchema());
} catch (Exception e) {
Expand Down

0 comments on commit 3974ce0

Please sign in to comment.