danielgomezrico
08/01/2016, 9:02 PMif (videoAnswer.error == null && thumbAnswer.error == null) {
val videoUrl = videoAnswer?.body // Two nullable properties
val thumbUrl = thumbAnswer?.body
if (videoUrl != null && thumbUrl != null) {
// Need both here non null
val video = NewVideo(title, description, videoUrl, thumbUrl)
videoRepository?.sendVideo(video)?.composeForIoTasks()
}
}
Guys how can I use two nullable
variables when nonnull
?