From: Roland Haeder Date: Fri, 16 Oct 2015 06:50:56 +0000 (+0200) Subject: seperated user init and method invocation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fcf3cf7006505667c707d1c2713bb302a7ca457f;p=addressbook-war.git seperated user init and method invocation Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/beans/addressbook/AddressbookWebBean.java b/src/java/org/mxchange/addressbook/beans/addressbook/AddressbookWebBean.java index ff12c1b6..411449fc 100644 --- a/src/java/org/mxchange/addressbook/beans/addressbook/AddressbookWebBean.java +++ b/src/java/org/mxchange/addressbook/beans/addressbook/AddressbookWebBean.java @@ -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); } }