Omaha #3708 fixed possible NPE in SiteConfigurationManager
Change-Id: Ic63d25ed626bec38fea2374c4122d29b44e064ab Former-commit-id:0a42113bbb
[formerly158aa3f439
[formerly180696a594
] [formerly0a42113bbb
[formerly 21924a6b536409681073f65d769bef53db049102]]] Former-commit-id:158aa3f439
[formerly180696a594
] Former-commit-id:158aa3f439
Former-commit-id:847d9c9925
This commit is contained in:
parent
d1efcc3014
commit
b59d505a41
1 changed files with 5 additions and 2 deletions
|
@ -73,6 +73,7 @@ import com.raytheon.uf.viz.collaboration.comm.identity.info.SiteConfigInformatio
|
|||
* Oct 10, 2014 3708 bclement refactored to support blacklisting
|
||||
* moved color config to SiteColorConfigManager
|
||||
* site level now combined with site config
|
||||
* Oct 10, 2014 3708 bclement fixed possible NPE in getSiteConfig() getSiteVisibilityConfig()
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -518,7 +519,8 @@ public class SiteConfigurationManager {
|
|||
SiteConfigInformation siteInstance = getSiteConfigInformation();
|
||||
if (siteInstance != null && siteInstance.getConfig() != null) {
|
||||
for (SiteConfig config : siteInstance.getConfig()) {
|
||||
if (config.getSite().equals(site)) {
|
||||
String configSite = config.getSite();
|
||||
if (configSite != null && configSite.equals(site)) {
|
||||
rval = new SiteVisiblityConfig(config,
|
||||
userSpecificConfigs);
|
||||
break;
|
||||
|
@ -573,7 +575,8 @@ public class SiteConfigurationManager {
|
|||
SiteConfig rval = null;
|
||||
if (info.getConfig() != null) {
|
||||
for (SiteConfig config : info.getConfig()) {
|
||||
if (config.getSite().equals(site)) {
|
||||
String configSite = config.getSite();
|
||||
if (configSite != null && configSite.equals(site)) {
|
||||
rval = config;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue