Commit 93534e6934081af5ee10c423e560a20800ffba5e

Authored by lsagona
1 parent 867a0df461
Exists in master and in 1 other branch dev

fix exception

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

src/main/kotlin/application/controller/DataPanelController.kt View file @ 93534e6
... ... @@ -91,7 +91,7 @@
91 91 }
92 92  
93 93 private fun plot() {
94   - if (selectedItem != null || observableSelectedVessel.value == Vessel(null)) {
  94 + if (selectedItem != null && observableSelectedVessel.value.messages.size != 0) {
95 95 GlobalScope.launch {
96 96 plot(selectedItem)
97 97 }