Handle StructureDefitinition having no 'path'

This commit is contained in:
Vadim Peretokin 2019-06-02 15:03:16 +02:00
parent 7d38ed4161
commit 313cd032c7
1 changed files with 4 additions and 3 deletions

View File

@ -1162,12 +1162,13 @@ public class Utilities {
}
public static String extractBaseUrl(String url) {
if (url.contains("/"))
if (url == null)
return null;
else if (url.contains("/"))
return url.substring(0, url.lastIndexOf("/"));
else
return url;
}
}
public static String listCanonicalUrls(Set<String> keys) {
return keys.toString();