I have a query I am making a call to a method like this from another piece of code within same class
String message = "null";
//In this case have too show the Yes/No button screen
return performManualVerification(transaction, patientId, scriptInfo, message);
As seen above the message contain string null I am passing this to the below method but while debugging I was checking that it was not going for null check block it should go inside null check block it is going on No phone block. Please advise
private int performManualVerification(ITransaction transaction,
String patientId, String scriptInfo, String message)
{
if (message.equalsIgnoreCase(null))
{
int UserResponse = messageBox.showMessage("patientinfoVerification",
null, IMessageBox.YESNO);
if (UserResponse == IMessageBox.YES) {
Map<String, List<String>> ppvValidatedinfo = getValidatedPatientData(transaction, patientId, scriptInfo);
if(ppvValidatedinfo.get(patientId) != null){
return MANUALLY_VERIFIED; // manually verified
}
}
return RETURN_SALE;
}
messageBox.showMessage("Nophone", null, IMessageBox.OK);
int UserResponse = messageBox.showMessage("patientinfoVerification",
null, IMessageBox.YESNO);
if (UserResponse == IMessageBox.YES) {
Map<String, List<String>> ppvValidatedinfo = getValidatedPatientData(transaction, patientId, scriptInfo);
if(ppvValidatedinfo.get(patientId) != null){
return MANUALLY_VERIFIED; // manually verified
}
}
return RETURN_SALE;
}