You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2021/11/19 16:47:18 UTC
[ofbiz-framework] branch trunk updated: Improved: Fix some bugs Spotbugs reports (OFBIZ-12386)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 7ac626b Improved: Fix some bugs Spotbugs reports (OFBIZ-12386)
7ac626b is described below
commit 7ac626b23d5fd9c0d0c4da921ba4f3988d43a09d
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Fri Nov 19 17:46:25 2021 +0100
Improved: Fix some bugs Spotbugs reports (OFBIZ-12386)
Repeated conditional test
---
.../src/main/java/org/apache/ofbiz/webapp/event/JavaEventHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/JavaEventHandler.java b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/JavaEventHandler.java
index 61000e2..f11f3fb 100644
--- a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/JavaEventHandler.java
+++ b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/JavaEventHandler.java
@@ -69,7 +69,7 @@ public class JavaEventHandler implements EventHandler {
throw new EventHandlerException("Error invoking event, the class "
+ event.getPath() + " was not found");
}
- if (event.getInvoke() == null || event.getInvoke() == null) {
+ if (event.getInvoke() == null) {
throw new EventHandlerException("Invalid event method or path; call initialize()");
}