Skip to content
Snippets Groups Projects
Commit bbc05aab authored by tpylak's avatar tpylak
Browse files

LMS-807 quick fix: there is still NPE in grids when session expires

SVN: 10349
parent 2e70bea4
No related branches found
No related tags found
No related merge requests found
...@@ -146,11 +146,18 @@ public final class CommonClientService extends AbstractClientService implements ...@@ -146,11 +146,18 @@ public final class CommonClientService extends AbstractClientService implements
// ----------- export and listing with cache generic functionality // ----------- export and listing with cache generic functionality
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
private final <K> IResultSetManager<K> getResultSetManager() { private final <K> IResultSetManager<K> getResultSetManager()
return (IResultSetManager<K>) getHttpSession().getAttribute( {
SessionConstants.OPENBIS_RESULT_SET_MANAGER); HttpSession httpSession = getHttpSession();
} if (httpSession == null)
{
throw new ch.systemsx.cisd.openbis.generic.client.web.client.exception.UserFailureException(
"Your session has expired, please log in again.");
}
return (IResultSetManager<K>) httpSession
.getAttribute(SessionConstants.OPENBIS_RESULT_SET_MANAGER);
}
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
private final <T> CacheManager<String, T> getExportManager() { private final <T> CacheManager<String, T> getExportManager() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment