fix for bug processing CCDA constraints (logical model constraints)

This commit is contained in:
Grahame Grieve 2020-08-06 22:34:30 +10:00
parent 3e33c8a835
commit 9b0ce65f08
1 changed files with 2 additions and 2 deletions

View File

@ -4616,7 +4616,7 @@ public class ProfileUtilities extends TranslatingUtilities {
this.prefixLength = prefixLength;
this.base = base;
if (Utilities.isAbsoluteUrl(base)) {
throw new Error("Wrong!");
this.base = urlTail(base);
}
this.name = name;
}
@ -5191,7 +5191,7 @@ public class ProfileUtilities extends TranslatingUtilities {
// }
//
private String urlTail(String profile) {
private static String urlTail(String profile) {
return profile.contains("/") ? profile.substring(profile.lastIndexOf("/")+1) : profile;
}