mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 20:50:44 +00:00
CE-1113 Avoid an NPE in doSpecHtml, if branding doesn't have an accent color
This commit is contained in:
@ -750,7 +750,7 @@ public class QJavalinApiHandler
|
||||
/////////////////////////////////
|
||||
html = html.replace("{spec-url}", apiInstanceMetaData.getPath() + version + "/openapi.json");
|
||||
html = html.replace("{version}", version);
|
||||
html = html.replace("{primaryColor}", branding == null ? "#FF791A" : branding.getAccentColor());
|
||||
html = html.replace("{primaryColor}", (branding == null || branding.getAccentColor() == null) ? "#FF791A" : branding.getAccentColor());
|
||||
|
||||
if(branding != null && StringUtils.hasContent(branding.getLogo()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user