mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-01 17:09:08 +00:00
check for NPE
This commit is contained in:
parent
96f265653e
commit
7b30dc02f9
@ -84,7 +84,10 @@ public class FmlParser extends ParserBase {
|
||||
result.makeElement("status").setValue("draft");
|
||||
}
|
||||
if (!result.hasChild("id") && result.hasChild("name")) {
|
||||
result.makeElement("id").setValue(Utilities.makeId(result.getChildValue("name")));
|
||||
String id = Utilities.makeId(result.getChildValue("name"));
|
||||
if (!Utilities.noString(id)) {
|
||||
result.makeElement("id").setValue(id);
|
||||
}
|
||||
}
|
||||
if (!result.hasChild("description") && result.hasChild("title")) {
|
||||
result.makeElement("description").setValue(Utilities.makeId(result.getChildValue("title")));
|
||||
|
@ -665,7 +665,10 @@ public class StructureMapUtilities {
|
||||
}
|
||||
}
|
||||
if (!result.hasId() && result.hasName()) {
|
||||
result.setId(Utilities.makeId(result.getName()));
|
||||
String id = Utilities.makeId(result.getName());
|
||||
if (Utilities.noString(id)) {
|
||||
result.setId(id);
|
||||
}
|
||||
}
|
||||
if (!result.hasStatus()) {
|
||||
result.setStatus(PublicationStatus.DRAFT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user