Skip to content

Commit 5459db8

Browse files
Moved call to resolveAuthenticatedCustomer() as action to take if a customer is not found. It was incorrectly placed and not getting called with customer was null.
1 parent d3e8e65 commit 5459db8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/broadleaf-profile-web/src/main/java/org/broadleafcommerce/profile/web/core/security/CustomerStateRequestProcessor.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ public void process(WebRequest request) {
126126
CustomerLoggedInEvent loggedInEvent = new CustomerLoggedInEvent(customer, this.getClass().getName());
127127
publishEvent(loggedInEvent, request, CustomerLoggedInEvent.class.getName(), userName);
128128
}
129-
} else {
130-
customer = resolveAuthenticatedCustomer(authentication);
131-
}
129+
}
130+
} else {
131+
customer = resolveAuthenticatedCustomer(authentication);
132132
}
133133
}
134134
}

0 commit comments

Comments
 (0)