Or is it not possible and I should prevent passing...
# announcements
a
Or is it not possible and I should prevent passing null whenever I create the instance, like:
Copy code
//In ViewportInfo.kt
data class ViewportInfo (var channelIds: List<String>, val startTime: Long, val duration: Long)

//In some foo.java class
ViewportInfo info = new ViewportInfo(ids != null ? ids : Collections.emptyList(), 100, 200);