Commit 44f5bce3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '889-minervanet-error-report-94' into 'master'

Resolve "MINERVANET - Error Report 94"

Closes #889

See merge request !888
parents fbeb1675 364ab3a5
Pipeline #12961 passed with stage
in 10 minutes and 55 seconds
minerva (14.0.0~beta.0) unstable; urgency=low
* Bug fix: fetching list of miRnas resulted sometimes in "Internal Server
Error" (#889)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 21 Aug 2019 21:00:00 +0200
minerva (14.0.0~alpha.1) unstable; urgency=low
* Feature removal: support for tomcat7 removed (#828)
* Small improvement: debian package can be installed on debian:buster (#879)
......
......@@ -362,9 +362,11 @@ public class ChemicalParser extends CachableInterface implements IExternalServic
if (chemicalNode != null && chemicalNode.hasChildNodes()) {
try {
result = chemicalSerializer.xmlToObject(chemicalNode);
return result;
} catch (SerializationException e) {
logger.error(e, e);
logger.error("Problem with deserializing element", e);
}
if (result != null) {
return result;
}
}
try {
......
......@@ -190,8 +190,10 @@ public class MiRNAParser extends CachableInterface implements IExternalService {
Node miRNANode = super.getCacheNode(MI_RNA_PREFIX + name.toLowerCase());
if (miRNANode != null && miRNANode.hasChildNodes()) {
miRNA = miRnaSerializer.xmlToObject(miRNANode);
miRNAs.add(miRNA);
idsToRemove.add(name);
if (miRNA != null) {
miRNAs.add(miRNA);
idsToRemove.add(name);
}
}
}
List<String> idsToFind = new ArrayList<>();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment