同じクラス内の別のコードからこのようなメソッドを呼び出しているクエリがあります
String message = "null";
//In this case have too show the Yes/No button screen
return performManualVerification(transaction, patientId, scriptInfo, message);
上記のように、メッセージには文字列 null が含まれています。これを以下のメソッドに渡しますが、デバッグ中に、null チェック ブロックに移動しないことを確認していました。null チェック ブロック内に移動する必要があります。電話ブロックはありません。お知らせ下さい
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;
}