Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4d7f6b40
authored
Jul 31, 2018
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check principal name for null value in PermissionBeanLocal.isLoggedIn()
1 parent
d26b9e67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/PermissionBean.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/PermissionBean.java
View file @
4d7f6b4
...
...
@@ -168,7 +168,7 @@ public class PermissionBean implements PermissionBeanLocal {
@Override
public
boolean
isLoggedIn
()
{
return
!
User
.
ANONYMOUS_LOGINNAME
.
equalsIgnoreCase
(
getPrincipalName
());
return
getPrincipalName
()
!=
null
&&
!
User
.
ANONYMOUS_LOGINNAME
.
equalsIgnoreCase
(
getPrincipalName
());
}
@Override
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment