Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
ac7c1d8a
Commit
ac7c1d8a
authored
Jul 25, 2019
by
Piotr Gawron
Browse files
check if type is proper reference genome type
parent
d9130144
Changes
1
Hide whitespace changes
Inline
Side-by-side
rest-api/src/main/java/lcsb/mapviewer/api/genomics/ReferenceGenomeRestImpl.java
View file @
ac7c1d8a
...
...
@@ -168,7 +168,12 @@ public class ReferenceGenomeRestImpl extends BaseRestImpl {
public
List
<
Map
<
String
,
Object
>>
getReferenceGenomeVersions
(
String
organismId
,
String
type
)
throws
QueryException
{
ReferenceGenomeType
genomeType
=
ReferenceGenomeType
.
valueOf
(
type
);
ReferenceGenomeType
genomeType
=
null
;
try
{
genomeType
=
ReferenceGenomeType
.
valueOf
(
type
);
}
catch
(
IllegalArgumentException
e
)
{
throw
new
QueryException
(
"Invalid type: "
+
type
);
}
MiriamData
organism
;
if
(
organismId
!=
null
&&
!
organismId
.
isEmpty
())
{
organism
=
new
MiriamData
(
MiriamType
.
TAXONOMY
,
organismId
);
...
...
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