mirror of https://github.com/zlatinb/muwire
null check just in case
parent
a3e2bc8d23
commit
454633480d
|
@ -90,6 +90,9 @@ class MainFrameController {
|
|||
def searchField = builder.getVariable("search-field")
|
||||
String search = searchField.getSelectedItem()
|
||||
|
||||
if (search == null)
|
||||
return
|
||||
|
||||
if(search.startsWith("muwire://")) {
|
||||
try {
|
||||
MuLink link = MuLink.parse(search)
|
||||
|
|
Loading…
Reference in New Issue