From: Sacha L. <sla...@us...> - 2002-07-31 12:28:49
|
User: slaboure Date: 02/07/31 05:28:47 Modified: src/main/org/jboss/ha/hasessionstate/server HASessionStateImpl.java Log: Better handling of unknown session retrieving on a given node Revision Changes Path 1.8 +8 -1 jbossmx/src/main/org/jboss/ha/hasessionstate/server/HASessionStateImpl.java Index: HASessionStateImpl.java =================================================================== RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/hasessionstate/server/HASessionStateImpl.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- HASessionStateImpl.java 1 Mar 2002 12:35:31 -0000 1.7 +++ HASessionStateImpl.java 31 Jul 2002 12:28:47 -0000 1.8 @@ -53,7 +53,7 @@ * @see HASessionState * @author sac...@co... * @author <a href="bi...@bu...">Bill Burke</a> - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * * <p><b>Revisions:</b><br> * <p><b>2002/01/09: billb</b> @@ -415,6 +415,13 @@ { Hashtable app = this.getHashtableForApp (appName); PackagedSession ps = (PackagedSession)app.get (keyId); + + // if the session is not yet available, we simply return null. The persistence manager + // will have to take an action accordingly + // + if (ps == null) + return null; + synchronized (ps) { if (!ps.getOwner ().equals (this.myNodeName)) |