From 7a4699ec2e7ec89263fd60aac375daee47041c1e Mon Sep 17 00:00:00 2001 From: PhilippHomann <3265572+PhilippHomann@users.noreply.github.com> Date: Fri, 23 Jun 2023 12:30:58 +0200 Subject: [PATCH] Add properties to readResolve() (#524) Co-authored-by: Philipp Homann --- .../jenkins/plugins/lockableresources/LockableResource.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java b/src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java index acb0aefe4..af06f8fec 100644 --- a/src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java +++ b/src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java @@ -136,6 +136,9 @@ protected Object readResolve() { if (queuedContexts == null) { // this field was added after the initial version if this class queuedContexts = new ArrayList<>(); } + if (properties == null) { + properties = new ArrayList<>(); + } this.repairLabels(); return this; }