We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1070e28 commit 831695cCopy full SHA for 831695c
src/main/java/org/scijava/search/template/TemplateSearcher.java
@@ -30,6 +30,7 @@
30
31
import java.io.File;
32
import java.net.URL;
33
+import java.util.Collections;
34
import java.util.LinkedHashMap;
35
import java.util.List;
36
import java.util.Map;
@@ -56,6 +57,9 @@ public String title() {
56
57
58
@Override
59
public List<SearchResult> search(String text, boolean fuzzy) {
60
+ // Sanity check - ensure nonempty text
61
+ if(text.isEmpty())
62
+ return Collections.emptyList();
63
// Get list of all templates in possible template paths
64
// templateService.getTemplates() ??
65
final String templatePath = "script_templates";
0 commit comments