Skip to content

Commit

Permalink
fix: null good
Browse files Browse the repository at this point in the history
  • Loading branch information
HyungJu committed Aug 10, 2024
1 parent 96eff82 commit d975477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fun PhotoEntity.toDomain(): Photo =
path = this.path,
location =
if (this.lat != null && this.lon != null) {
Location(this.lat, this.lon, this.location, "경기도")
Location(this.lat!!, this.lon!!, this.location, "경기도")
} else {
null
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class PhotoEntity(
@Column(name = "photo_id")
var id: Long? = null,
val path: String,
val lat: Double?,
val lon: Double?,
var lat: Double?,
var lon: Double?,
val location: String?,
val date: LocalDateTime,
val photobookId: Long?,
Expand Down

0 comments on commit d975477

Please sign in to comment.