Skip to content

Commit 3992fd5

Browse files
[bitpay#420] Add Java 25 support
1 parent e45eda3 commit 3992fd5

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88

99
strategy:
1010
matrix:
11-
java-version: [8, 11, 17, 21, 23]
11+
java-version: [8, 11, 17, 21, 23, 25]
1212

1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-java@v4
14+
- uses: actions/checkout@v6
15+
- uses: actions/setup-java@v5
1616
with:
1717
java-version: ${{ matrix.java-version }}
1818
distribution: 'corretto'

.github/workflows/documentation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-java@v4
17+
- uses: actions/checkout@v6
18+
- uses: actions/setup-java@v5
1919
with:
2020
java-version: 8
2121
distribution: 'corretto'
@@ -31,4 +31,4 @@ jobs:
3131
git config user.email ""
3232
git add docs/
3333
git commit -m "Update javadoc" || echo "No changes to commit"
34-
git push
34+
git push

src/main/java/com/bitpay/sdk/util/KeyUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ public KeyUtils() {
4848
public static boolean privateKeyExists(String privateKeyFile) {
4949
PrivateKeyFile = privateKeyFile;
5050

51+
// if the private key file is null or empty, return false
52+
if (privateKeyFile == null || privateKeyFile.isEmpty()) {
53+
return false;
54+
}
55+
5156
return new File(privateKeyFile).exists();
5257
}
5358

0 commit comments

Comments
 (0)