mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
Fix problem with null browse index (can be null for browsing withdrawn items - will be set later)
git-svn-id: http://scm.dspace.org/svn/repo/trunk@2644 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -253,7 +253,7 @@ public abstract class AbstractBrowserServlet extends DSpaceServlet
|
|||||||
}
|
}
|
||||||
|
|
||||||
// For second level browses on metadata indexes, we need to adjust the default sorting
|
// For second level browses on metadata indexes, we need to adjust the default sorting
|
||||||
if (bi.isMetadataIndex() && scope.isSecondLevel() && scope.getSortBy() <= 0)
|
if (bi != null && bi.isMetadataIndex() && scope.isSecondLevel() && scope.getSortBy() <= 0)
|
||||||
{
|
{
|
||||||
scope.setSortBy(1);
|
scope.setSortBy(1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user