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:
Michael Brohl
2017-12-12 16:22:21 +00:00
parent 6f035f6cbc
commit bced76ed99
@@ -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)) {