Browse Source

!10226 solve nullptr problem

From: @bairongz
Reviewed-by: @zhunaipan,@zh_qh
Signed-off-by: @zh_qh
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
8cc05c1b62
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      mindspore/ccsrc/debug/draw.cc

+ 5
- 1
mindspore/ccsrc/debug/draw.cc View File

@@ -421,7 +421,11 @@ static void DrawValueNode(Graphviz *const graph_obj, const ValueNodePtr &node) {
graph_obj->buffer() << "<br/>";
}
graph_obj->buffer() << attr.first << " ";
graph_obj->buffer() << attr.second->ToString();
if (attr.second == nullptr) {
graph_obj->buffer() << " ";
} else {
graph_obj->buffer() << attr.second->ToString();
}
i++;
}
}


Loading…
Cancel
Save