Skip to content

Commit

Permalink
Merge pull request #1574 from NASA-AMMOS/fix/ofnullable
Browse files Browse the repository at this point in the history
NPE fix
  • Loading branch information
dandelany authored Oct 3, 2024
2 parents ac8720e + 697fe9a commit aff0fba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ public SimulationActivityExtract computeActivitySimulationResults(
.stream()
.map(spanToActivityInstanceId::get)
.toList(),
(activityParents.containsKey(span)) ? Optional.empty() : Optional.ofNullable(directiveId),
Optional.ofNullable(directiveId),
outputAttributes
));
} else {
Expand All @@ -843,7 +843,7 @@ public SimulationActivityExtract computeActivitySimulationResults(
.stream()
.map(spanToActivityInstanceId::get)
.toList(),
(activityParents.containsKey(span)) ? Optional.empty() : Optional.of(directiveId)
Optional.ofNullable(directiveId)
));
}
});
Expand Down

0 comments on commit aff0fba

Please sign in to comment.