}
applicationService.decryptCredentials(application);
AbstractDefectTracker dt = DefectTrackerFactory.getTracker(application);
ProjectMetadata data = null;
List<Defect> defectList = null;
Map<String, Object> map = new HashMap<>();
if (dt != null) {
if (addDefectIds) {
defectList = dt.getDefectList();
if (dt.getLastError() != null && !dt.getLastError().isEmpty()) {
map.put(ERROR_MSG, dt.getLastError());
return map;
}
} else {
defectList = list();
}
data = dt.getProjectMetadata();
if (dt.getLastError() != null && !dt.getLastError().isEmpty()) {
map.put(ERROR_MSG, dt.getLastError());
return map;
}
// adding additional scanner info checkbox, checking for null dynamicformfields
List<DynamicFormField> editableFields = data.getEditableFields();
if (editableFields != null) {
addAdditionalScannerInfoField(editableFields);
//remove Order field in Version One dynamic form