diff --git a/AUTHORS b/AUTHORS index 86c4533e3d..56f2dfdd0d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -52,6 +52,7 @@ Chris Nardi Christopher A. Taylor Daniel Andersson Daniel James +Deon Dior Douglas Crosher Dusan Milosavljevic Erich Ocean diff --git a/src/compiler/node.cc b/src/compiler/node.cc index 198c353084..e4e22b4023 100644 --- a/src/compiler/node.cc +++ b/src/compiler/node.cc @@ -369,7 +369,11 @@ std::ostream& operator<<(std::ostream& os, const Node& n) { os << "("; for (int i = 0; i < n.InputCount(); ++i) { if (i != 0) os << ", "; - os << n.InputAt(i)->id(); + if (n.InputAt(i)) { + os << n.InputAt(i)->id(); + } else { + os << "null"; + } } os << ")"; }