mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +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/branches/dspace-1_5_x@2643 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -251,7 +251,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