Skip to content

Commit 0095338

Browse files
committed
:bugs: 세부주소 null일때 빈문자열 처리
1 parent 4e30af3 commit 0095338

File tree

1 file changed

+3
-1
lines changed
  • src/main/java/com/amatta/findog/domain

1 file changed

+3
-1
lines changed

src/main/java/com/amatta/findog/domain/Dog.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ protected void initializeDog(String color, String breed, Sex sex, boolean isNeut
6666
}
6767

6868
public String getFullAddress(){
69-
return location.getAddress1()+", "+location.getAddress2();
69+
String str1 = location.getAddress1() == null? "" : location.getAddress1();
70+
String str2 = location.getAddress2() == null? "" : location.getAddress2();
71+
return str1+" "+ str2;
7072
}
7173
}

0 commit comments

Comments
 (0)