Skip to content

Commit

Permalink
Merge pull request #120 from ChristianeHofer/patch-2
Browse files Browse the repository at this point in the history
Fix ArrayOutOfBounds if weight are null
  • Loading branch information
palatej authored Mar 22, 2024
2 parents aff20a3 + 6b50076 commit 4026c44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private RawStlResults finishProcessing() {
.irregular(DoubleSeq.of(irr))
.fit(DoubleSeq.of(fit))
.seasonal(DoubleSeq.of(season))
.weights(weights == null ? DoubleSeq.empty() : DoubleSeq.of(weights))
.weights(weights == null ? DoubleSeq.onMapping(n, x -> 1.0) : DoubleSeq.of(weights))
.sa(DoubleSeq.of(sa))
.build();
}
Expand Down

0 comments on commit 4026c44

Please sign in to comment.