Skip to content

Commit

Permalink
Fix NPE if string for crop overflow is null (eclipse-birt#1921) (ecli…
Browse files Browse the repository at this point in the history
  • Loading branch information
speckyspooky authored Sep 28, 2024
1 parent d87640e commit d731e30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ public void writeTextInRun(int type, String txt, IStyle style, String fontFamily
} else {
// get text attribute overflow hidden
// and run the function to emulate if true
if (CSSConstants.CSS_OVERFLOW_HIDDEN_VALUE.equals(style.getOverflow())) {
if (CSSConstants.CSS_OVERFLOW_HIDDEN_VALUE.equals(style.getOverflow()) && txt != null) {
txt = cropOverflowString(txt, style, fontFamily, paragraphWidth);
}
writeString(txt, style);
Expand Down

0 comments on commit d731e30

Please sign in to comment.