I need to retrieve data from db, if no data found in dB i need to fire a popup window in java. im giving the code here which i write to handle but unable to handle it.
String SectorCode = employerProfile.getSectorCode().getSectorTypeId();
String IndustrialCode = employerProfile.getIndustrialCode().getIndustryTypeId();
try{
if(SectorCode==null || IndustrialCode==null){
JOptionPane.showMessageDialog(null, "Record not found" );
}
}catch(Exception ex){
ex.printStackTrace();
}
Please suggest me the solution... Thanks in advance