This is an automated email from the ASF dual-hosted git repository.
mariofusco pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git
The following commit(s) were added to refs/heads/main by this push:
new dee09fde22 [KIE-DROOLS-6190] avoid reattaching a peer of a removed
node during incremental compilation (#6210)
dee09fde22 is described below
commit dee09fde2262a5f528a98242b5f202f854f6e82a
Author: Mario Fusco <[email protected]>
AuthorDate: Fri Jan 3 11:06:22 2025 +0100
[KIE-DROOLS-6190] avoid reattaching a peer of a removed node during
incremental compilation (#6210)
---
.../src/main/java/org/drools/core/phreak/EagerPhreakBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/drools-core/src/main/java/org/drools/core/phreak/EagerPhreakBuilder.java
b/drools-core/src/main/java/org/drools/core/phreak/EagerPhreakBuilder.java
index 15478b1a2b..62b6682fe3 100644
--- a/drools-core/src/main/java/org/drools/core/phreak/EagerPhreakBuilder.java
+++ b/drools-core/src/main/java/org/drools/core/phreak/EagerPhreakBuilder.java
@@ -1361,7 +1361,7 @@ public class EagerPhreakBuilder implements PhreakBuilder {
} else {
// is the LT for the LIAN, if so we need to process the FH too
fh.removeLeftTuple(removingLt);
- if (leftPrevious == null) {
+ if (leftPrevious == null &&
nextPeerLt.getSink().getAssociatedTerminalsSize() > 0) {
// The removed tuple was first in linked list, add the
peer at its original position
fh.addFirstLeftTuple( nextPeerLt );
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]