Skip to content

Commit

Permalink
fossid-webapp: Make multiple FossId model properties nullable
Browse files Browse the repository at this point in the history
It is not guaranteed that FossId always returns these values. To prevent
a crash due to a deserialization error, specify the properties as
nullable.

Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.io>
  • Loading branch information
MarcelBochtler committed Apr 6, 2022
1 parent fcd4da4 commit e4d39c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clients/fossid-webapp/src/main/kotlin/model/Project.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 Bosch.IO GmbH
* Copyright (C) 2020-2022 Bosch.IO GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -34,14 +34,14 @@ data class Project(

val limitDate: String?,

val productCode: String,
val productName: String,
val productCode: String?,
val productName: String?,

val description: String,
val description: String?,
val comment: String,

val isArchived: Int,
val jiraProjectKey: String,
val jiraProjectKey: String?,
val creationDate: String,
val dateLimitDate: String?
)

0 comments on commit e4d39c3

Please sign in to comment.