QuackatronHQ / Gigarepo

Method attempts to access a result set field with index 0 JAVA-E0343
Bug risk
Critical
1 occurrence in this check
ResultSet fields cannot be accessed with a 0 index
 44
 45            URI offerAPI = new URI(req.getParameter("offerAPI"));
 46
 47            String id = r.getString(0); 48
 49            if (r.getBoolean("isWin") && b) {
 50                resp.getWriter().print("You win, " + r.getString("userName") + "!<br>You can fill your details in with this link: " + req.getParameter(id));