Commit 48038a9c by Joshua Z. Zhang Committed by Tianqi Chen

fix segfault when op is unset (#15)

parent 7c95535c
......@@ -491,7 +491,7 @@ bool Symbol::GetAttr(const std::string& key, std::string* out) const {
if (node->attrs.op != nullptr) {
*out = node->attrs.op->name;
} else {
*out = "null"; // use null in consistant with json
*out = "null"; // use null with json
}
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment