Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.cmssite.multisite. (OFBIZ-9626) Thanks Dennis Balkir for reporting and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1817929 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -80,7 +80,7 @@ public class WebSiteFilter implements Filter {
|
||||
|
||||
GenericValue webSite = null;
|
||||
try {
|
||||
if (UtilValidate.isNotEmpty(webSiteAlias) && webSite == null) {
|
||||
if (UtilValidate.isNotEmpty(webSiteAlias)) {
|
||||
webSite = EntityQuery.use(delegator).from("WebSite").where("hostedPathAlias", webSiteAlias).cache().queryFirst();
|
||||
}
|
||||
if (UtilValidate.isEmpty(webSite)) {
|
||||
|
||||
Reference in New Issue
Block a user