You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/07/22 09:03:34 UTC

[isis] branch master updated: ISIS-2297: fixes broken logic from one before prev. commit

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new a56e58a  ISIS-2297: fixes broken logic from one before prev. commit
a56e58a is described below

commit a56e58a3d2dfcc6b7ea333ee9ad415f62e5900b4
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Jul 22 11:03:12 2021 +0200

    ISIS-2297: fixes broken logic from one before prev. commit
---
 .../java/org/apache/isis/core/interaction/scope/InteractionScope.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/interaction/src/main/java/org/apache/isis/core/interaction/scope/InteractionScope.java b/core/interaction/src/main/java/org/apache/isis/core/interaction/scope/InteractionScope.java
index 73b6b84..41d01e5 100644
--- a/core/interaction/src/main/java/org/apache/isis/core/interaction/scope/InteractionScope.java
+++ b/core/interaction/src/main/java/org/apache/isis/core/interaction/scope/InteractionScope.java
@@ -100,7 +100,7 @@ implements
                     + "InteractionScopeBeanFactoryPostProcessor registered and initialized.", name);
         }
 
-        if(interactionService.isInInteraction()) {
+        if(!interactionService.isInInteraction()) {
             throw _Exceptions.illegalState("Creation of bean %s with @InteractionScope requires the "
                     + "calling %s to have an open Interaction on the thread-local stack. Running into "
                     + "this issue might be caused by use of ... @Inject MyScopedBean bean ..., instead of "