Handle StructureDefitinition having no 'path'
This commit is contained in:
parent
7d38ed4161
commit
313cd032c7
|
@ -1162,12 +1162,13 @@ public class Utilities {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String extractBaseUrl(String url) {
|
public static String extractBaseUrl(String url) {
|
||||||
if (url.contains("/"))
|
if (url == null)
|
||||||
|
return null;
|
||||||
|
else if (url.contains("/"))
|
||||||
return url.substring(0, url.lastIndexOf("/"));
|
return url.substring(0, url.lastIndexOf("/"));
|
||||||
else
|
else
|
||||||
return url;
|
return url;
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public static String listCanonicalUrls(Set<String> keys) {
|
public static String listCanonicalUrls(Set<String> keys) {
|
||||||
return keys.toString();
|
return keys.toString();
|
||||||
|
|
Loading…
Reference in New Issue