Skip to content

Commit

Permalink
fix(Series): check null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
howel52 committed Nov 26, 2019
1 parent 545e79b commit 51925a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/Series.js
Expand Up @@ -584,7 +584,7 @@ function dataTaskReset(context) {

function dataTaskProgress(param, context) {
// Avoid repead cloneShallow when data just created in reset.
if (param.end > context.outputData.count()) {
if (context.outputData && param.end > context.outputData.count()) {
context.model.getRawData().cloneShallow(context.outputData);
}
}
Expand Down

0 comments on commit 51925a0

Please sign in to comment.