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 e2157027
authored
Jul 31, 2016
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nullcheck for events
1 parent
9b9d4956
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/moyamessage/MoyaEventSender.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/moyamessage/MoyaEventSender.java
View file @
e215702
...
@@ -63,7 +63,10 @@ public class MoyaEventSender implements LoggingBeanLocal {
...
@@ -63,7 +63,10 @@ public class MoyaEventSender implements LoggingBeanLocal {
MoyaEventMessage
msg
=
new
MoyaEventMessage
();
MoyaEventMessage
msg
=
new
MoyaEventMessage
();
msg
.
setEventtype
(
type
);
msg
.
setEventtype
(
type
);
msg
.
setTime
(
Calendar
.
getInstance
());
msg
.
setTime
(
Calendar
.
getInstance
());
msg
.
setEventUserId
(
user
.
getId
());
if
(
user
!=
null
)
{
msg
.
setEventUserId
(
user
.
getId
());
}
msg
.
setCurrentUserId
(
permbean
.
getCurrentUser
().
getUser
().
getId
());
msg
.
setCurrentUserId
(
permbean
.
getCurrentUser
().
getUser
().
getId
());
msg
.
setEventId
(
eventbean
.
getCurrentEvent
().
getId
());
msg
.
setEventId
(
eventbean
.
getCurrentEvent
().
getId
());
msg
.
setDescription
(
message
);
msg
.
setDescription
(
message
);
...
...
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