On Wed, 18 Dec 2024 18:03:59 GMT, Andy Goryachev <ango...@openjdk.org> wrote:
>> Yes, that would make the callsite a bit easier. However, from an API >> perspective, I think it's not the best approach to handle nulls in the >> toolkit layer. A system that channels nulls thorugh various layers tends to >> become harder to reason about over time. > > I disagree: it makes it more resilient by doing what the caller has to do > anyway. > However, the answer is acceptable. Btw, even if we did decide to change it in the future, we wouldn't do it as part of this PR. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1665#discussion_r1890642221