prevent NPE when browsed from an older host

This commit is contained in:
Zlatin Balevsky
2019-11-08 04:02:11 +00:00
parent b0357f2ecd
commit e94b7cb0d4

View File

@ -40,7 +40,7 @@ class SharedFileView {
scrollPane(constraints : BorderLayout.CENTER) {
table(autoCreateRowSorter : true, rowHeight : rowHeight) {
tableModel(list : model.searchers) {
closureColumn(header : "Searcher", type : String, read : {it.searcher.getHumanReadableName()})
closureColumn(header : "Searcher", type : String, read : {it.searcher?.getHumanReadableName()})
closureColumn(header : "Query", type : String, read : {it.query})
closureColumn(header : "Timestamp", type : String, read : {
Date d = new Date(it.timestamp)