Skip to content

Commit

Permalink
klighd: fixed NPE for labels with only a KText and no direct label te…
Browse files Browse the repository at this point in the history
…xt (#94)
  • Loading branch information
NiklasRentzCAU authored Aug 16, 2021
1 parent de61aa1 commit 0b15965
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ public Boolean caseElkLabel(final ElkLabel layoutLabel) {
layoutLabel.getText());
String origLabelText = label.getText();

if (origLabelText.equals(layoutLabel.getText())) {
if (origLabelText != null && origLabelText.equals(layoutLabel.getText())) {
label.setProperty(KlighdProperties.TOOLTIP, null);
} else {
label.setProperty(KlighdProperties.TOOLTIP, origLabelText);
Expand Down

0 comments on commit 0b15965

Please sign in to comment.