Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LBAC-10 Added fix to check the NPE for getAuthenticatedUser() #16

Merged
merged 1 commit into from
Jul 15, 2018

Conversation

suthagar23
Copy link
Member

Description

Added fix to check the NPE for Context.getAuthenticatedUser()

Ticket

Ticket : https://issues.openmrs.org/browse/LBAC-10

@@ -54,6 +54,9 @@ public Advice getAdvice() {
private class PatientSearchAdvise implements MethodInterceptor {
public Object invoke(MethodInvocation invocation) throws Throwable {
Object object = invocation.proceed();
if (Context.getAuthenticatedUser() == null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to call invocation.proceed before this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need it before. Just changed

Added fix to check the NPE for getAuthenticatedUser
suthagar23 referenced this pull request Jul 13, 2018
…covered with AOP Advices (#13)

LBAC-10 Added exception for Daemon thread user to access the methods covered with AOP Advices
@dkayiwa
Copy link
Member

dkayiwa commented Jul 14, 2018

Can you squash the commits into one?

@suthagar23
Copy link
Member Author

This PR has only one commit: https://github.com/openmrs/openmrs-module-locationbasedaccess/pull/16/commits

Those are the references which linked to other comments

@dkayiwa dkayiwa merged commit a388581 into openmrs:master Jul 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants