mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Java: Switch to the shared Guards library.
This commit is contained in:
@@ -60,7 +60,7 @@ public class C {
|
||||
arrLen = arr == null ? 0 : arr.length;
|
||||
}
|
||||
if (arrLen > 0) {
|
||||
arr[0] = 0; // NPE - false positive
|
||||
arr[0] = 0; // OK
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user