Commit eddab3b1 by Sharmadha Sainath Committed by Madhan Neethiraj

ATLAS-1939: added parameter validation to prevent NPE during import

parent 84c6d52d
......@@ -370,6 +370,10 @@ public class AdminResource {
AtlasImportResult result;
try {
if (StringUtils.isEmpty(jsonData)) {
jsonData = "{}";
}
AtlasImportRequest request = AtlasType.fromJson(jsonData, AtlasImportRequest.class);
ZipSource zipSource = new ZipSource(inputStream);
......
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