Skip to content

Commit 24511fb

Browse files
committed
Merge pull request #424 from UNC-Libraries/no-perms-collection
Fixed NPE for no permissions on collection view
2 parents d05ffec + 3ea81c4 commit 24511fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

access/src/main/java/edu/unc/lib/dl/ui/controller/FullRecordController.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ public String getFullRecord(String pid, Model model, HttpServletRequest request)
241241
ContainerView.EXPORTS.name());
242242

243243
private void applyContainerSettings(String pid, Document foxml, Model model, boolean hasDescription) {
244+
if (foxml == null) {
245+
return;
246+
}
247+
244248
ContainerSettings settings = new ContainerSettings(foxml.getRootElement().getChildren().get(0));
245249

246250
if (settings.getViews().size() == 0) {

0 commit comments

Comments
 (0)