]> git.mxchange.org Git - addressbook-war.git/commitdiff
seperated user init and method invocation
authorRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 06:50:56 +0000 (08:50 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 06:50:56 +0000 (08:50 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/addressbook/beans/addressbook/AddressbookWebBean.java

index ff12c1b68940ac6676b91a88321b91986c6c7804..411449fcbc688688a9d14f0689ab9575b7f8be2d 100644 (file)
@@ -458,7 +458,10 @@ public class AddressbookWebBean implements AddressbookWebController {
         * Initializes the user user's address book list
         */
        private void initAddressbookList () {
+               // Get user instance
+               User user = this.loginController.getLoggedInUser();
+
                // Fill list with entries
-               this.usersAddressbooks = this.addressbookBean.getUsersAddressbookList(this.loginController.getLoggedInUser());
+               this.usersAddressbooks = this.addressbookBean.getUsersAddressbookList(user);
        }
 }