Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Wiest
unified-ticketing
Commits
b2324a1f
Verified
Commit
b2324a1f
authored
Dec 20, 2020
by
Lukas Wiest
🚂
Browse files
refactor(systems/gitlab): TicketSystem: add missing check for null-on-error config
parent
36ee913a
Pipeline
#1698
passed with stages
in 3 minutes and 1 second
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/hftstuttgart/unifiedticketing/systems/gitlab/GitlabTicketSystem.java
View file @
b2324a1f
...
...
@@ -113,7 +113,11 @@ public class GitlabTicketSystem extends TicketSystem<GitlabTicket, GitlabTicketS
.
get
();
if
(
ret
==
null
)
return
null
;
else
if
(
ret
.
size
()
!=
1
)
throw
new
UnifiedticketingException
(
"more or less than 1 dedicated ticket found"
);
else
if
(
ret
.
size
()
!=
1
)
{
if
(
getConfigTrue
(
ConfigurationOptions
.
RETURN_NULL_ON_ERROR
))
return
null
;
else
throw
new
UnifiedticketingException
(
"more or less than 1 dedicated ticket found"
);
}
else
return
ret
.
get
(
0
);
}
...
...
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