Definitely not null - the javadoc says nothing about null, perhaps it should be 
more explicit.  The paragraph may contain paragraph attributes, even when empty.

-andy



From: openjfx-dev <openjfx-dev-r...@openjdk.org> on behalf of PavelTurk 
<pavelturk2...@gmail.com>
Date: Friday, May 2, 2025 at 08:30
To: openjfx-dev@openjdk.org <openjfx-dev@openjdk.org>
Subject: CodeArea: What should SyntaxDecorator.createRichParagraph return for 
empty paragraphs?
Could anyone say what createRichParagraph should return if the paragraph is 
empty (length = 0)?
For example, RichParagraph.builder().build(), or null, or ?

Best regards, Pavel

Reply via email to