diff --git a/ssc/parser.cs b/ssc/parser.cs index c997836..318254d 100644 --- a/ssc/parser.cs +++ b/ssc/parser.cs @@ -257,6 +257,9 @@ namespace arookas { return null; } static __sunConstants GetId(Node node) { + if (node == null) { + return (__sunConstants)(-1); + } return (__sunConstants)node.Id; }