Skip to content

Commit

Permalink
Resolve NPE for passive packer quality level
Browse files Browse the repository at this point in the history
  • Loading branch information
paytoncain committed Aug 23, 2024
1 parent de14f2b commit eff4e78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ private List<PassivePackerQualityEntry> getQualityEntries(List<DataQualityEntry>
return (PassivePackerQualityEntry) PassivePackerQualityEntry.builder()
.start(serializeDateTime(e.getStartTime()))
.end(serializeDateTime(e.getEndTime()))
.quality(e.getQualityLevel().getName())
.quality(e.getQualityLevel() == null ? null : e.getQualityLevel().getName())
.lowFreq(String.valueOf(e.getMinFrequency()))
.highFreq(String.valueOf(e.getMaxFrequency()))
.comments(e.getComments())
Expand Down

0 comments on commit eff4e78

Please sign in to comment.