Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 2c52d0e

Browse files
committed
SORMAS-Foundation#2318 - added null representation check
1 parent aa79405 commit 2c52d0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/visit/VisitEditForm.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ protected void addFields() {
113113

114114
TextField textFieldPhone = new TextField(I18nProperties.getCaption(Captions.contactPersonPhoneNumber));
115115
textFieldPhone.setWidth(100, Unit.PERCENTAGE);
116-
String phoneNumber = (this.person.getPhone() == null) ? "" : this.person.getPhone();
117-
textFieldPhone.setValue(phoneNumber);
116+
textFieldPhone.setValue(this.person.getPhone());
117+
textFieldPhone.setNullRepresentation("");
118118
textFieldPhone.setReadOnly(true);
119119
getContent().addComponent(textFieldPhone, CONTACT_PERSON_PHONE_NUMBER_LOC);
120120

0 commit comments

Comments
 (0)