Author: knopp
Date: Sat Aug 18 12:46:07 2007
New Revision: 567320

URL: http://svn.apache.org/viewvc?view=rev&rev=567320
Log:
NPE check

Modified:
    
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java

Modified: 
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java?view=diff&rev=567320&r1=567319&r2=567320
==============================================================================
--- 
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java
 (original)
+++ 
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java
 Sat Aug 18 12:46:07 2007
@@ -343,7 +343,8 @@
                public synchronized boolean exists(String pageMapName, int 
pageId, int versionNumber)
                {
                        PageMapEntry entry = getPageMapEntry(pageMapName, 
false);
-                       return entry.getManager().getPageWindow(pageId, 
versionNumber, -1) != null;
+                       return entry != null &&
+                                       
entry.getManager().getPageWindow(pageId, versionNumber, -1) != null;
                }
        }
 


Reply via email to