File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
nextflow/src/main/groovy/nextflow/util
nf-commons/src/main/nextflow/plugin Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,10 @@ class KryoHelper {
112112 kryo. addDefaultSerializer(GString , GStringSerializer )
113113 // map entry serializer
114114 kryo. addDefaultSerializer(Map.Entry , MapEntrySerializer )
115+ // register PathSerializer as default for all Path implementations not explicitly registered
116+ // (e.g. JimfsPath used in tests) to prevent Kryo's FieldSerializer from recursing into
117+ // internal fields that may contain non-serializable objects such as lambdas (Guava 33.4+)
118+ kryo. addDefaultSerializer(Path , PathSerializer )
115119
116120 return kryo
117121 }
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ class HttpPluginRepository implements PrefetchUpdateRepository {
152152 }
153153 try {
154154 final ListDependenciesResponse decoded = encoder. decode(body)
155- if ( decoded. plugins == null ) {
155+ if ( ! decoded. plugins ) {
156156 throw new PluginRuntimeException (" Failed to download plugin metadata: Failed to parse response body" )
157157 }
158158 final result = new HashMap<String , PluginInfo > ()
You can’t perform that action at this time.
0 commit comments