Author: taylor
Date: Mon Sep 18 23:46:13 2006
New Revision: 447764
URL: http://svn.apache.org/viewvc?view=rev&rev=447764
Log:
put in a NPE check
it started throwing NPEs every time i hit the portal
even if i shutdown tomcat, restarted several times, NPEs occurred consistently
weird thing is its been working all day long
Modified:
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/session/PortalSessionsManagerImpl.java
Modified:
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/session/PortalSessionsManagerImpl.java
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/session/PortalSessionsManagerImpl.java?view=diff&rev=447764&r1=447763&r2=447764
==============================================================================
---
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/session/PortalSessionsManagerImpl.java
(original)
+++
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/session/PortalSessionsManagerImpl.java
Mon Sep 18 23:46:13 2006
@@ -130,6 +130,11 @@
if ( portalSession != null && paSession != null )
{
PortalSessionRegistry psr =
(PortalSessionRegistry)portalSessionsRegistry.get(portalSession.getId());
+ if (psr == null)
+ {
+ psr = new PortalSessionRegistry();
+ portalSessionsRegistry.put(portalSession.getId(), psr);
+ }
PortletApplicationSessionMonitor pasm =
(PortletApplicationSessionMonitor)psr.sessionMonitors.get(contextPath);
if ( pasm != null )
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]