-
Notifications
You must be signed in to change notification settings - Fork 700
Closed as not planned
Labels
type: bugA general bugA general bug
Description
It's possible to get null elements in a collection of non-nullable elements (using Kotlin). No idea why Kotlin isn't complaining about it either until I try to access an element, but here are the steps for reproducing:
- Have database view with ID that is a composite of multiple columns, one of which is null (rendering the entire ID for that row as null)
- Have repository interface for said view, with the entity's ID as a nullable value of type String
- Repository interface should have some function that returns List (non-nullable!)
- Call repository function, try to iterate over the results doing something that requires the elements to be not null
- Get java.lang.NullPointerException
Expectation: Either the collection won't include the DB view rows where ID is null, or it'll have the entity ID as null, but either way, there should be no null objects in the returned collection.
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug