mehb-groww / test2

Boxed Boolean values should not be used in conditional expressions JAVA-E1054
Bug risk
Major
a year agoa year old
This would throw a NullPointerException if sqli were null
 86
 87    public User getDentistById(String id, Boolean sqli) {
 88        List<User> result;
 89        if (sqli) { 90            int param;
 91            try {
 92                param = Integer.valueOf(id);