From 50f79b861183274aa5b995fbcd4e48e43ab40d09 Mon Sep 17 00:00:00 2001 From: Yuriy Movchan Date: Fri, 13 Oct 2023 17:42:26 +0300 Subject: [PATCH 1/2] Fix serialization after deserialization --- .../springframework/webflow/engine/impl/FlowSessionImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/engine/impl/FlowSessionImpl.java b/spring-webflow/src/main/java/org/springframework/webflow/engine/impl/FlowSessionImpl.java index 75659c501..141988004 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/engine/impl/FlowSessionImpl.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/engine/impl/FlowSessionImpl.java @@ -157,7 +157,7 @@ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundExcept } public void writeExternal(ObjectOutput out) throws IOException { - out.writeObject(flow.getId()); + out.writeObject(flow != null ? flow.getId() : null); out.writeObject(state != null ? state.getId() : null); out.writeObject(scope); out.writeObject(parent); From a5332604dd2679ca5ad8515a7f4b32807fecffb0 Mon Sep 17 00:00:00 2001 From: Yuriy Movchan Date: Fri, 13 Oct 2023 18:28:09 +0300 Subject: [PATCH 2/2] Fix serialization after deserialization --- .../springframework/webflow/engine/impl/FlowSessionImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/engine/impl/FlowSessionImpl.java b/spring-webflow/src/main/java/org/springframework/webflow/engine/impl/FlowSessionImpl.java index 141988004..c8f75eb18 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/engine/impl/FlowSessionImpl.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/engine/impl/FlowSessionImpl.java @@ -157,7 +157,7 @@ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundExcept } public void writeExternal(ObjectOutput out) throws IOException { - out.writeObject(flow != null ? flow.getId() : null); + out.writeObject(flow != null ? flow.getId() : flowId); out.writeObject(state != null ? state.getId() : null); out.writeObject(scope); out.writeObject(parent);