From dbec47530c91b6cd586fb05b44fd27444301e04a Mon Sep 17 00:00:00 2001 From: Instrumental Date: Fri, 31 May 2019 15:08:37 -0500 Subject: Switch to new Locate Features Issue-ID: AAF-839 Change-Id: I3122d32330c7e0fab533db8355183dbff68f7cc7 Signed-off-by: Instrumental --- auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Page.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'auth/auth-gui/src/main') diff --git a/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Page.java b/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Page.java index 8924ba26..5b6eb016 100644 --- a/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Page.java +++ b/auth/auth-gui/src/main/java/org/onap/aaf/auth/gui/Page.java @@ -261,7 +261,7 @@ public class Page extends HTMLCacheGen { }); hgen.html(); final String title = env.getProperty(AAF_GUI_TITLE,"Authentication/Authorization Framework"); - final String defaultTheme = env.get(sTheme); + final String defaultTheme = env.get(sTheme,"onap"); final Holder hTheme = new Holder<>(defaultTheme); Mark head = hgen.head(); @@ -368,7 +368,7 @@ public class Page extends HTMLCacheGen { cache.dynamic(hgen, new DynamicCode() { @Override public void code(AAF_GUI state, AuthzTrans trans,Cache cache, HTMLGen xgen) throws APIException, IOException { - Properties props = themeProps.get(hTheme.get()); + Properties props = themeProps==null?null:themeProps.get(hTheme.get()); if(props!=null && "TRUE".equalsIgnoreCase(props.getProperty("main_menu_in_nav"))) { xgen.incr("h2").text("Navigation").end(); Mark mark = new Mark(); -- cgit 1.2.3-korg