Added sanity check.

This commit is contained in:
arookas 2015-12-27 21:05:38 -05:00
parent 7e6c43d91e
commit eb636f2674

View file

@ -12,6 +12,10 @@ namespace arookas
public sunSourceLocation(string file, int line, int column) public sunSourceLocation(string file, int line, int column)
{ {
if (file == null)
{
throw new ArgumentNullException("file");
}
File = file; File = file;
Line = line; Line = line;
Column = column; Column = column;