Skip to content

Commit

Permalink
Avoid null pointer exception in diagrams with bodyless reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed Sep 22, 2023
1 parent 4aa386d commit 52180e2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ public KPolygon addReactionFigure(KNode node, ReactionInstance reaction) {
// optional code content
boolean hasCode =
getBooleanValue(LinguaFrancaSynthesis.SHOW_REACTION_CODE)
&& reaction.getDefinition().getCode() != null
&& !StringExtensions.isNullOrEmpty(reaction.getDefinition().getCode().getBody());
if (hasCode) {
KText hasCodeText =
Expand Down

0 comments on commit 52180e2

Please sign in to comment.