public DialogTambah(JFrame parent, String ACTION, String NAMA) throws Exception {
    super((Frame)null,"" , true);        
    initComponents();       
    AKSI_SELANJUTNYA = ACTION;
    sId = "";
    sUserid = "";
    sPwd = "";
    sNama = "";
    sPhoneNo = "";
    sAddress = "";
    sEmail = "";
    sCrnumber = "";
    tgl="";
    if (AKSI_SELANJUTNYA == "Form Ubah") {
        try {
            Statement Update_st = DBConn.conn.createStatement();
            String SQLEdit = "select * from content where name = '" + NAMA + "' ";
            ResultSet rs = Update_st.executeQuery(SQLEdit);
            rs.next();
java.sql.SQLException: Illegal operation on empty result set.
null
myqstn why always get null result? i've checked and no bugs.
 
    