Commit 52536797 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

one check is missing

parent 6d0b8b9a
......@@ -18,7 +18,8 @@ import lcsb.mapviewer.annotation.services.annotators.AnnotatorException;
import lcsb.mapviewer.api.*;
import lcsb.mapviewer.api.projects.models.publications.PublicationsRestImpl;
import lcsb.mapviewer.common.comparator.StringComparator;
import lcsb.mapviewer.common.exception.*;
import lcsb.mapviewer.common.exception.InvalidArgumentException;
import lcsb.mapviewer.common.exception.NotImplementedException;
import lcsb.mapviewer.converter.Converter;
import lcsb.mapviewer.converter.zip.*;
import lcsb.mapviewer.model.Project;
......@@ -443,6 +444,9 @@ public class ProjectRestImpl extends BaseRestImpl {
String name;
ZipEntryFileType type = ZipEntryFileType.getType(entryType);
if (type == null) {
throw new QueryException("Unknown type for zip entry: zip-entries[" + fileIndex + "]");
}
switch (type) {
case MAP:
String submodelTypeKey = "zip-entries[" + fileIndex + "][_data][type][id]";
......
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