Merge pull request #1041 from alexey-tschudnowsky/ISSUE_1040_Profile_Compare_NullPointerException

fixes #1040 (NullPointerException while comparing profiles)
This commit is contained in:
Grahame Grieve 2022-12-17 08:09:12 +11:00 committed by GitHub
commit 4028d9930b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4147,7 +4147,7 @@ public class ProfileUtilities extends TranslatingUtilities {
if (!useTableForFixedValues || !allowSubRows || definition.getFixed().isPrimitive()) {
String s = buildJson(definition.getFixed());
String link = null;
if (Utilities.isAbsoluteUrl(s))
if (Utilities.isAbsoluteUrl(s) && pkp != null)
link = pkp.getLinkForUrl(corePath, s);
c.getPieces().add(checkForNoChange(definition.getFixed(), gen.new Piece(link, s, null).addStyle("color: darkgreen")));
} else {