Skip to content
Snippets Groups Projects
Commit bea51bd1 authored by jakubs's avatar jakubs
Browse files

return null if no vocabulary found

SVN: 27538
parent 4da313f2
No related branches found
No related tags found
No related merge requests found
......@@ -212,6 +212,6 @@ public class SearchService implements ISearchService
public IVocabularyImmutable searchForVocabulary(String code)
{
Vocabulary vocabulary = openBisService.tryGetVocabulary(code);
return new VocabularyImmutable(vocabulary);
return (vocabulary == null) ? null : new VocabularyImmutable(vocabulary);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment