Skip to content

Commit 89327b8

Browse files
committed
work in progress
1 parent 4d8cbd4 commit 89327b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/woehlke/simpleworklist/application/common/AbstractController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ protected Context getContext(UserSessionBean userSession){
147147
UserAccount thisUser = this.getUser();
148148
if(userSession == null){
149149
userSession = new UserSessionBean();
150-
long defaultContextId = thisUser.getDefaultContext().getId();
151-
userSession.setLastContextId(defaultContextId);
152150
}
151+
long defaultContextId = thisUser.getDefaultContext().getId();
152+
userSession.setLastContextId(defaultContextId);
153153
Context context = contextService.findByIdAndUserAccount(userSession.getLastContextId(), thisUser);
154154
userSession.setLastContextId(context.getId());
155155
userSession.setUserAccountid(thisUser.getId());

0 commit comments

Comments
 (0)