roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r573694 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/MainMenu.java
Date Fri, 07 Sep 2007 20:45:11 GMT
Author: snoopdave
Date: Fri Sep  7 13:45:11 2007
New Revision: 573694

URL: http://svn.apache.org/viewvc?rev=573694&view=rev
Log:
Fix for "Unexpected Exception occurs when user clicks decline to join a group weblog"
http://opensource.atlassian.com/projects/roller/browse/ROL-1552

Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/MainMenu.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/MainMenu.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/MainMenu.java?rev=573694&r1=573693&r2=573694&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/MainMenu.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/MainMenu.java
Fri Sep  7 13:45:11 2007
@@ -91,12 +91,14 @@
             UserManager userMgr = WebloggerFactory.getWeblogger().getUserManager();
             WeblogPermission perms = userMgr.getPermissions(getInviteId());
             if (perms != null) {
+                String handle = perms.getWebsite().getHandle();
+                        
                 // TODO ROLLER_2.0: notify inviter that invitee has declined invitation
                 // TODO EXCEPTIONS: better exception handling here
                 userMgr.removePermissions(perms);
                 WebloggerFactory.getWeblogger().flush();
 
-                addMessage("yourWebsites.declined", perms.getWebsite().getHandle());
+                addMessage("yourWebsites.declined", handle);
             } else {
                 addError("yourWebsites.permNotFound");
             }



Mime
View raw message