[java-opensaml] branch main updated: Fix some null warnings.
Scott Cantor
cantor.2 at osu.edu
Wed Mar 5 16:41:01 UTC 2025
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=ec2c064a91f943fc3078be2290d5ac033ba87038
The following commit(s) were added to refs/heads/main by this push:
new ec2c064a9 Fix some null warnings.
ec2c064a9 is described below
commit ec2c064a91f943fc3078be2290d5ac033ba87038
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Mar 5 11:40:31 2025 -0500
Fix some null warnings.
---
.../opensaml/storage/impl/client/JSONClientStorageServiceStore.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/client/JSONClientStorageServiceStore.java b/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/client/JSONClientStorageServiceStore.java
index d49a1e594..16a1f9248 100644
--- a/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/client/JSONClientStorageServiceStore.java
+++ b/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/client/JSONClientStorageServiceStore.java
@@ -144,8 +144,8 @@ public class JSONClientStorageServiceStore extends AbstractClientStorageServiceS
if (empty) {
log.trace("{} Data is empty", storageService.getLogPrefix());
- return new ClientStorageServiceOperation(storageService.getId(), storageService.getStorageName(), null,
- source);
+ return new ClientStorageServiceOperation(storageService.ensureId(), storageService.getStorageName(),
+ null, source);
}
final String raw = sink.toString();
@@ -157,7 +157,7 @@ public class JSONClientStorageServiceStore extends AbstractClientStorageServiceS
exp > 0 ? Instant.ofEpochMilli(exp) : Instant.now().plus(Duration.ofDays(1)));
log.trace("{} Size of data after encryption is {}", storageService.getLogPrefix(), wrapped.length());
setDirty(false);
- return new ClientStorageServiceOperation(storageService.getId(), storageService.getStorageName(),
+ return new ClientStorageServiceOperation(storageService.ensureId(), storageService.getStorageName(),
wrapped, source);
} catch (final DataSealerException e) {
throw new IOException(e);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list