Author: mbrohl
Date: Tue Dec 12 16:22:21 2017
New Revision: 1817929
URL:
http://svn.apache.org/viewvc?rev=1817929&view=revLog:
Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.cmssite.multisite.
(OFBIZ-9626)
Thanks Dennis Balkir for reporting and providing the patch.
Modified:
ofbiz/ofbiz-plugins/trunk/cmssite/src/main/java/org/apache/ofbiz/cmssite/multisite/WebSiteFilter.java
Modified: ofbiz/ofbiz-plugins/trunk/cmssite/src/main/java/org/apache/ofbiz/cmssite/multisite/WebSiteFilter.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/cmssite/src/main/java/org/apache/ofbiz/cmssite/multisite/WebSiteFilter.java?rev=1817929&r1=1817928&r2=1817929&view=diff==============================================================================
--- ofbiz/ofbiz-plugins/trunk/cmssite/src/main/java/org/apache/ofbiz/cmssite/multisite/WebSiteFilter.java (original)
+++ ofbiz/ofbiz-plugins/trunk/cmssite/src/main/java/org/apache/ofbiz/cmssite/multisite/WebSiteFilter.java Tue Dec 12 16:22:21 2017
@@ -80,7 +80,7 @@ public class WebSiteFilter implements Fi
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)) {