taylor 2004/06/07 15:20:06
Modified: portal/src/java/org/apache/jetspeed/container/session/impl
SessionNavigationalState.java
Log:
check for NPE
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.16 +5 -2
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/session/impl/SessionNavigationalState.java
Index: SessionNavigationalState.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/session/impl/SessionNavigationalState.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- SessionNavigationalState.java 1 Jun 2004 20:39:13 -0000 1.15
+++ SessionNavigationalState.java 7 Jun 2004 22:20:06 -0000 1.16
@@ -161,7 +161,10 @@
PortletWindow window = accessor.getPortletWindow(windowId);
Page page = context.getPage();
- pages.put(page.getId(), window);
+ if (null != page)
+ {
+ pages.put(page.getId(), window);
+ }
}
else
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]