Fix another Global-FS test regression
@@ -410,13 +410,15 @@ public final class LocalGlobalFsNode implements GlobalFsNode, Initializable<Loca
if (e != null && e != NO_METADATA) {
return Promise.ofException(e);
}
- GlobalFsMetadata localMetadata;
+ GlobalFsMetadata localMetadata = null;
+ if (signedLocalMetadata != null) {
if (!signedLocalMetadata.verify(space)) {
logger.warn("found local metadata with unverified signature, skipping {}", signedLocalMetadata.getValue());
return Promise.of(false);
} else {
localMetadata = signedLocalMetadata.getValue();
}
+ }
if (localMetadata != null) {
// our file is better
