Skip to content

Commit

Permalink
LSNBLDR-526 - Preventing a NPE in session when used from web service.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmerino committed Sep 2, 2015
1 parent efcf62e commit 73abf1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ public Map<String,String> transferCopyEntitiesImpl(String fromContext, String to
siteService.save(toSite);
ToolSession session = sessionManager.getCurrentToolSession();

if (session.getAttribute(ATTR_TOP_REFRESH) == null) {
if (session != null && session.getAttribute(ATTR_TOP_REFRESH) == null) {
session.setAttribute(ATTR_TOP_REFRESH, Boolean.TRUE);
}

Expand Down

0 comments on commit 73abf1b

Please sign in to comment.