<@U1N1ZJ4MD>: I’m not sure but it may be a bug. An...
# announcements
m
@mohsenk: I’m not sure but it may be a bug. Anyway, I would do it in a Kotlin way:
Copy code
val device = userDeviceService.findByUUID(uuid) ?: UserDevice().apply {
  // The device is in this
}
👍 1