Posts by Dericky • 1 point
1 post
-
-3
votes2
answers175
viewsA: Nullpointerexception error, where is the error?
Connection con = null; stl = con.prepareStatement(sql); // con = null case IniciarBD() is initiating the variable con, then: rs = stl.executeQuery(); jComboBox1.addItem(rs.getString("NOME")); If…