Browse Source

UpdateRecordedYearThrowsTest (3)

Andrew Grant 7 months ago
parent
commit
86a7c62642

+ 1 - 1
src/main/java/scot/carricksoftware/grants/services/census/censusentry/UpdateRecordedYearOfBirthImpl.java

@@ -35,7 +35,7 @@ public class UpdateRecordedYearOfBirthImpl implements UpdateRecordedYearOfBirth
             if (person.getRecordedYearOfBirth() == null) {
                 if (censusEntryCommand.getBirthYear() != null) {
                     PersonCommand personCommand = personConverter.convert(person);
-                    if (personCommand != null) {
+                    if (!(personCommand == null)){
                         personCommand.setRecordedYearOfBirth(censusEntryCommand.getBirthYear());
                         personService.savePersonCommand(personCommand);
                     } else {