Index: NewGroup.jsp =================================================================== RCS file: /p/cvs/JSPWiki/src/webdocs/NewGroup.jsp,v retrieving revision 1.13 diff -u -r1.13 NewGroup.jsp --- NewGroup.jsp 5 Mar 2006 22:23:50 -0000 1.13 +++ NewGroup.jsp 6 May 2006 02:17:47 -0000 @@ -83,8 +83,13 @@ response.sendRedirect( ex.getRedirect() ); return; } + + //Moved redirect. This fixed the issue of redirecting once the group has been created + //a null recirect causes a NullPointerException + response.sendRedirect( wikiContext.getURL(WikiContext.VIEW, groupContext.getPage().getName()) ); + } - response.sendRedirect( wikiContext.getURL(WikiContext.VIEW,null) ); + } pageContext.setAttribute( "name", name, PageContext.REQUEST_SCOPE );