Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
1ea69afe
Commit
1ea69afe
authored
Jul 25, 2019
by
Piotr Gawron
Browse files
the user might be null
parent
486b27d9
Changes
1
Show whitespace changes
Inline
Side-by-side
service/src/main/java/lcsb/mapviewer/services/impl/FileService.java
View file @
1ea69afe
...
...
@@ -28,8 +28,9 @@ public class FileService implements IFileService {
@Override
public
User
getOwnerByFileId
(
int
id
)
{
UploadedFileEntry
entry
=
uploadedFileEntryDao
.
getById
(
id
);
if
(
entry
!=
null
)
{
uploadedFileEntryDao
.
getById
(
id
).
getOwner
().
getLogin
();
if
(
entry
!=
null
&&
entry
.
getOwner
()
!=
null
)
{
//it's lazy initialized
entry
.
getOwner
().
getLogin
();
return
uploadedFileEntryDao
.
getById
(
id
).
getOwner
();
}
else
{
return
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment