Fixing NPE in SolrPagedSearchController NIHVIVO-2809
This commit is contained in:
parent
98b1a4aba2
commit
5cb9198ada
1 changed files with 2 additions and 1 deletions
|
@ -397,7 +397,8 @@ public class SolrPagedSearchController extends FreemarkerHttpServlet {
|
|||
if( VitroVocabulary.OWL_THING.equals(typeUri))
|
||||
continue;
|
||||
VClass type = vclassDao.getVClassByURI(typeUri);
|
||||
if( ! type.isAnonymous() &&
|
||||
if( type != null &&
|
||||
! type.isAnonymous() &&
|
||||
type.getName() != null && !"".equals(type.getName()) &&
|
||||
type.getGroupURI() != null ) //don't display classes that aren't in classgroups
|
||||
classes.add(type);
|
||||
|
|
Loading…
Add table
Reference in a new issue