Commit 53b466eb263fcc8515a45c90d0bd1bacd63ecbd0

Authored by Fernando Ribeiro
1 parent 1fed2a9252
Exists in DSpace52++

Corrected a null pointer exception if a sharing bar was displayed in a handlerless item in workspace

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
dspace-jspui/src/main/webapp/display-item.jsp
... ... @@ -337,7 +337,7 @@
337 337 %>
338 338 <br/>
339 339 <!-- && !isAdmin removed. sharing bar will appear even to the Administration zone -->
340   -<% if (ConfigurationManager.getBooleanProperty("sharing.active", false)) { %>
  340 +<% if (ConfigurationManager.getBooleanProperty("sharing.active", false) && workspace_id != null) { %>
341 341 <% // code
342 342 SharingManager manager = new SharingManager(new ItemWrapper(item));
343 343 %>
... ...