Révision 3683

TXM/trunk/bundles/org.txm.treesearch.rcp/src/org/txm/treesearch/command/SendToTreeSearch.java (revision 3683)
163 163
		return toTree(editor, s, kp, concordance.getCorpus());
164 164
	}
165 165
	
166
	@SuppressWarnings("unused")
166 167
	public Object toTree(ITXMResultEditor<? extends TXMResult> editor, ISelection s, int kp, CQPCorpus corpus) {
167 168
		TXMResult r = editor.getResult();
168 169
		
......
177 178
			ts = ComputeTreeSearch.getTreeSearchFor(corpus);
178 179
			ts.setQuery(null);
179 180
		}
181
		
182
		if (ts == null) {
183
			Log.warning("No syntactic index found.");
184
			return null;
185
		}
180 186
		//ts.setQuery(concordance.getQuery());
181 187
		
182 188
		try {

Formats disponibles : Unified diff