Actions
Bug #3584
openDefect ID: DF005
Bug #3584:
Defect ID: DF005
Start date:
10/02/2025
Due date:
% Done:
0%
Estimated time:
Description
Defect ID: DF005
Defect Name: Missing null/empty checks for input matrices
Line Number: 3
Defect Description: The code accesses A[0] and B[0] without checking whether A or B is null or has zero rows, which can cause NullPointerException or IndexOutOfBoundsException.
Fixing Solution: Add checks at the start of multiplyMatrices: if A==null || B==null || A.length==0 || B.length==0 then throw IllegalArgumentException with a clear message.
No data to display
Actions