Updated addwordcontroller.
This commit is contained in:
parent
5dcafb889f
commit
2129fc016b
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ public class AddWordController extends SharedCodeController {
|
|||
}
|
||||
boolean entryFound = false;
|
||||
// test for one or more blank fields and if there is create the correct error dialogue box
|
||||
if (english.getText() == null || welsh.getText() == null || wordType.getValue().equals("Type")) {
|
||||
if (english.getText().equals("") || welsh.getText().equals("") || wordType.getValue().equals("Type")) {
|
||||
Alert error = new Alert(Alert.AlertType.ERROR);
|
||||
error.setTitle("Error");
|
||||
error.setHeaderText("Entry Not Saved");
|
||||
|
|
Reference in a new issue