NIHVIVO-3340 Test not only for empty individuals, but also for nil individuals.

This commit is contained in:
j2blake 2011-11-28 17:46:32 +00:00
parent 4986c36299
commit 7976e3fd37

View file

@ -35,7 +35,7 @@ browseByVClass.getIndividuals = function(vclassUri, alpha, page, scroll) {
// Catch exceptions when empty individuals result set is returned
// This is very likely to happen now since we don't have individual counts for each letter and always allow the result set to be filtered by any letter
if ( results.individuals.length == 0 ) {
if ( !results.individuals || results.individuals.length == 0 ) {
browseByVClass.emptyResultSet(results.vclass, alpha)
} else {
var vclassName = results.vclass.name;