From eb636f26745cea0884ffabf39ae6a86117e68c53 Mon Sep 17 00:00:00 2001 From: arookas Date: Sun, 27 Dec 2015 21:05:38 -0500 Subject: [PATCH] Added sanity check. --- ssc/ast/nodes.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssc/ast/nodes.cs b/ssc/ast/nodes.cs index 69dac4b..5864934 100644 --- a/ssc/ast/nodes.cs +++ b/ssc/ast/nodes.cs @@ -12,6 +12,10 @@ namespace arookas public sunSourceLocation(string file, int line, int column) { + if (file == null) + { + throw new ArgumentNullException("file"); + } File = file; Line = line; Column = column;