Skip to content

Commit

Permalink
Fix null check (#1974)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumuwu authored Jun 28, 2023
1 parent 4daae4d commit 22376e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private static String renderService(String service, int indentLevel)

private static String renderServiceOutputTargets(List<ServiceOutputTarget> serviceOutputTargets, int indentLevel, PureGrammarComposerContext context)
{
if (serviceOutputTargets.isEmpty())
if (serviceOutputTargets == null || serviceOutputTargets.isEmpty())
{
return "";
}
Expand Down

0 comments on commit 22376e3

Please sign in to comment.