We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9126b8e commit b739d3cCopy full SHA for b739d3c
src/main/java/com/amazonaws/encryptionsdk/internal/VersionInfo.java
@@ -49,7 +49,11 @@ public static String versionNumber() {
49
// In some cases, another dependency MAY also define a project.properties file,
50
// which MAY be loaded before the ESDK's. In this case, the version property
51
// MAY NOT exist, which causes an NPE later on.
52
- return Objects.requireNonNullElse(maybeVersion, UNKNOWN_VERSION);
+ if (maybeVersion == null) {
53
+ return UNKNOWN_VERSION;
54
+ } else {
55
+ return maybeVersion;
56
+ }
57
} catch (final IOException ex) {
58
return UNKNOWN_VERSION;
59
}
0 commit comments