Commit 8c10342b34c3bd8d2694524d5aa560fbb969f590

Authored by Fernando Ribeiro
1 parent e9c3a0a277

Corrected an null pointer exception if an item not have a worspace_id when rendering the sharingbar

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
Readme.md
... ... @@ -276,7 +276,7 @@ Add after ```<%@page import="org.dspace.versioning.VersionHistory"%>```:
276 276 and before ```<%-- Create Commons Link --%>```
277 277  
278 278  
279   - <% if (ConfigurationManager.getBooleanProperty("sharing.active", false)) { %>
  279 + <% if (ConfigurationManager.getBooleanProperty("sharing.active", false) && workspace_id != null) { %>
280 280 <% // code
281 281 SharingManager manager = new SharingManager(new ItemWrapper(item));
282 282 %>
... ...