Fixed NullPointerException that occurred when trying to delete a cookie that did...
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sun, 24 Nov 2002 15:46:17 +0000 (15:46 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sun, 24 Nov 2002 15:46:17 +0000 (15:46 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@356 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/wayf/CookieWayfCache.java

index f22832a..ca335f5 100755 (executable)
@@ -100,6 +100,7 @@ public class CookieWayfCache extends WayfCacheBase implements WayfCache {
                HttpServletResponse res) {
 
                Cookie[] cookies = req.getCookies();
+               if (cookies == null) { return; }
                for (int i = 0; i < cookies.length; i++) {
                        if (cookies[i]
                                .getName()