Skip to content

Commit 93f2d01

Browse files
committed
fixed a nullpointer exception
1 parent 8a90781 commit 93f2d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/protocol/handler/extension/SignatureAndHashAlgorithmsExtensionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void adjustTLSExtensionContext(SignatureAndHashAlgorithmsExtensionMessage
4444
byte[] algoBytes = Arrays.copyOfRange(signatureAndHashBytes, i, i
4545
+ HandshakeByteLength.SIGNATURE_HASH_ALGORITHM);
4646
SignatureAndHashAlgorithm algo = SignatureAndHashAlgorithm.getSignatureAndHashAlgorithm(algoBytes);
47-
if (algo.getSignatureAlgorithm() == null || algo.getHashAlgorithm() == null) {
47+
if (algo == null || algo.getSignatureAlgorithm() == null || algo.getHashAlgorithm() == null) {
4848
LOGGER.warn("Unknown SignatureAndHashAlgorithm:" + ArrayConverter.bytesToHexString(algoBytes));
4949
} else {
5050
algoList.add(algo);

0 commit comments

Comments
 (0)