mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-04 04:29:38 +02:00
Fix npe for searchable types which no longer exist because the plugin that provided the type was deleted
This commit is contained in:
@@ -86,6 +86,9 @@ class SearchableTypeResolver {
|
||||
}
|
||||
|
||||
public LuceneSearchableType resolve(Class<?> type) {
|
||||
if (type == null) {
|
||||
throw notFound(entity("type", "null"));
|
||||
}
|
||||
LuceneSearchableType searchableType = classToSearchableType.get(type);
|
||||
if (searchableType == null) {
|
||||
throw notFound(entity("type", type.getName()));
|
||||
|
||||
Reference in New Issue
Block a user