fix possible-but-improbable npe
if( wiki.getManager( AttachmentManager.class ).getAttachmentInfoName( wikiContext, pageName ) != null ) continue;
Page wikiPage = wiki.getManager( PageManager.class ).getPage( pageName );
+ if( wikiPage != null ) { // there's a possibility the wiki page may get deleted between the call to reference manager and now...
PagePermission permission = PermissionFactory.getPagePermission( wikiPage, "view" );
boolean allowed = wiki.getManager( AuthorizationManager.class ).checkPermission( wikiContext.getWikiSession(), permission );
if( allowed ) {
out.write( url + " " + pageName + "\n" );
}
}
+ }
%>
\ No newline at end of file
