Skip to content

Commit d390acf

Browse files
author
Jacob Rachiele
committed
Fix null pointer issue in argument validation
1 parent a3ebbe9 commit d390acf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

math/src/main/java/com/github/signaflo/math/linear/doubles/QuadraticForm.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public static double multiply(Vector x, Matrix A) {
6464
}
6565

6666
private static void validateArguments(Vector x, Matrix A) {
67-
Validate.argumentsNotNull(x.getClass(), x);
68-
Validate.argumentsNotNull(A.getClass(), A);
67+
Validate.argumentsNotNull(Vector.class, x);
68+
Validate.argumentsNotNull(Matrix.class, A);
6969
if (!A.isSquare()) {
7070
throw new IllegalArgumentException("The matrix must be square.");
7171
}

0 commit comments

Comments
 (0)