File tree Expand file tree Collapse file tree
org.knime.scijava.commands/src/org/knime/scijava/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .knime .scijava .commands ;
22
33import java .util .Collection ;
4+ import java .util .Collections ;
45import java .util .Comparator ;
56import java .util .HashSet ;
67import java .util .Set ;
78import java .util .TreeSet ;
89import java .util .WeakHashMap ;
910
1011import org .knime .core .data .DataValue ;
12+ import org .knime .core .data .StringValue ;
1113import org .knime .scijava .commands .adapter .InputAdapter ;
1214import org .knime .scijava .commands .adapter .InputAdapterService ;
1315import org .scijava .plugin .AbstractSingletonService ;
@@ -122,13 +124,13 @@ public Set<InputAdapter> getMatchingInputAdapters(
122124 if (set != null ) {
123125 // save result for dataValueClass
124126 m_pluginsByDataValue .put (dataValueClass , set );
125-
126127 break ;
127128 }
128129 }
129-
130+ if (set == null ) { // datatype is unknown
131+ set = Collections .emptySet ();
132+ }
130133 }
131-
132134 return set ;
133135 }
134136
@@ -151,7 +153,6 @@ private void processInstances() {
151153 // priority
152154 m_pluginsByDataValue .put (type , set );
153155 }
154-
155156 set .add (p );
156157 }
157158 }
You can’t perform that action at this time.
0 commit comments