Skip to content

Commit

Permalink
fix npe on empty responses from jaicp channel
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Metelyagin <[email protected]>
  • Loading branch information
Denire committed Jul 2, 2020
1 parent 851feac commit 774234d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data class JaicpBotResponse(
val channelBotId: String,
val channelUserId: String,
val questionId: String,
val query: String,
val query: String?,
val timestamp: Long,
val currentState: String,
var processingTime: Long,
Expand All @@ -35,7 +35,7 @@ fun JaicpBotResponse.Companion.create(
channelBotId = jaicpBotRequest.channelBotId,
channelUserId = jaicpBotRequest.channelUserId,
questionId = jaicpBotRequest.questionId,
query = jaicpBotRequest.query!!,
query = jaicpBotRequest.query,
timestamp = OffsetDateTime.now().toEpochSecond(),
currentState = currentState,
processingTime = processingTime
Expand Down

0 comments on commit 774234d

Please sign in to comment.