mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (Cloud33/4.3) to HEAD (Cloud33/4.3)
62929: Merged PLATFORM1 (Cloud33) to HEAD-BUG-FIX (Cloud33/4.3) 62598: ACE-579 - Synchronization aborted due to error java.lang.NullPointerException git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62984 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1271,7 +1271,11 @@ public class LDAPUserRegistry implements UserRegistry, LDAPNameResolver, Initial
|
|||||||
callback.process(result);
|
callback.process(result);
|
||||||
|
|
||||||
// Close the contexts, see ALF-20682
|
// Close the contexts, see ALF-20682
|
||||||
((Context)result.getObject()).close();
|
Context resultCtx = (Context)result.getObject();
|
||||||
|
if(resultCtx != null)
|
||||||
|
{
|
||||||
|
resultCtx.close();
|
||||||
|
}
|
||||||
result = null;
|
result = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1293,7 +1297,11 @@ public class LDAPUserRegistry implements UserRegistry, LDAPNameResolver, Initial
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
((Context)result.getObject()).close();
|
Context resultCtx = (Context)result.getObject();
|
||||||
|
if(resultCtx != null)
|
||||||
|
{
|
||||||
|
resultCtx.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user