Skip to content

Commit

Permalink
[FIX] Avoid NullpointerException thrown in scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed Nov 2, 2023
1 parent 1bae687 commit 7c8141d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void schedule(RevisionPlan revisionPlan, Workpackage wp) {
workTime = targetHistory.getWorkTime(); // TODO - replace with node.getTaskType().getAverageWorkTime()

TaskPlan sourceTaskPlan = taskPlanMap.get(source.getTaskType());
if(sourceTaskPlan.getPlannedStartTime() == null) // do not schedule if the source plan is not scheduled
if(sourceTaskPlan == null || sourceTaskPlan.getPlannedStartTime() == null) // do not schedule if the source plan is not scheduled
return;

if(edge.patternType == PatternType.EQUALITY){
Expand Down

0 comments on commit 7c8141d

Please sign in to comment.