Author: bdaw
Date: 2010-08-10 09:50:52 -0400 (Tue, 10 Aug 2010)
New Revision: 354
Modified:
idm/trunk/picketlink-idm-core/src/main/java/org/picketlink/idm/impl/api/session/managers/PersistenceManagerImpl.java
Log:
- prevent NPE when IO creation fail
Modified:
idm/trunk/picketlink-idm-core/src/main/java/org/picketlink/idm/impl/api/session/managers/PersistenceManagerImpl.java
===================================================================
---
idm/trunk/picketlink-idm-core/src/main/java/org/picketlink/idm/impl/api/session/managers/PersistenceManagerImpl.java 2010-08-10
12:46:35 UTC (rev 353)
+++
idm/trunk/picketlink-idm-core/src/main/java/org/picketlink/idm/impl/api/session/managers/PersistenceManagerImpl.java 2010-08-10
13:50:52 UTC (rev 354)
@@ -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