title: java.sql.SQLException: Illegal operation on empty result set
body: <pre><code>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();
  </code></pre>
  
  <hr>
  
  <p>java.sql.SQLException: Illegal operation on empty result set.</p>
  
  <h2>null</h2>
  
  <p>myqstn why always get null result? i've checked and no bugs.</p>