Author: bdaw
Date: 2010-08-10 10:06:43 -0400 (Tue, 10 Aug 2010)
New Revision: 355
Modified:
idm/branches/1.1.0/picketlink-idm-core/src/main/java/org/picketlink/idm/impl/api/session/managers/PersistenceManagerImpl.java
Log:
- prevent NPE when IO creation fail
Modified:
idm/branches/1.1.0/picketlink-idm-core/src/main/java/org/picketlink/idm/impl/api/session/managers/PersistenceManagerImpl.java
===================================================================
---
idm/branches/1.1.0/picketlink-idm-core/src/main/java/org/picketlink/idm/impl/api/session/managers/PersistenceManagerImpl.java 2010-08-10
13:50:52 UTC (rev 354)
+++
idm/branches/1.1.0/picketlink-idm-core/src/main/java/org/picketlink/idm/impl/api/session/managers/PersistenceManagerImpl.java 2010-08-10
14:06:43 UTC (rev 355)
@@ -139,7 +139,7 @@
}
//Cache
- if (cache != null)
+ if (cache != null && user != null)
{
//TODO: maybe invalidate only part
cache.invalidate(cacheNS);
@@ -184,7 +184,7 @@
group = new SimpleGroup(groupName, groupType);
}
- if (cache != null)
+ if (cache != null && group != null)
{
//TODO: maybe invalidate only part
cache.invalidate(cacheNS);
Show replies by date