Skip to content

Commit 7ada70d

Browse files
authored
Merge pull request #1000 from boblee0717/bob_cv1
fix NPE if the pod does not exist
2 parents aff92be + ee5189c commit 7ada70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/agent/qrm-plugins/cpu/dynamicpolicy/policy_advisor_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ func (p *DynamicPolicy) checkAndApplyAllPodsQuota(calculationInfo *advisorsvc.Ca
598598
for _, podDir := range podDirs {
599599
pod, podRelativePath, err := p.getPodAndRelativePath(calculationInfo.CgroupPath, podDir, podsPathMap)
600600
if err != nil {
601-
general.Warningf("getPodAndRelativePath error for pod %s: %v", pod.Name, err)
601+
general.Warningf("getPodAndRelativePath error for pod dir %s: %v", podDir, err)
602602
continue
603603
}
604604

0 commit comments

Comments
 (0)