1
Vote

Crashes while parsing Linq Expressions

description

It crashed while trying to parse the following line:
string[] strings = new string[2];
strings[0] = "abc";
strings[1] = "bc";
 
int len = (from str in strings select str.Length).Min();
 
Exception Info:
Object reference not set to an instance of an object.
at DDW.ExpressionStatement..ctor(ExpressionNode expression) in D:\temp\csparser\CSParser\csparser\CSLexer\Nodes\Statements\ExpressionStatement.cs:line 14
at DDW.Parser.ParseStatement() in D:\temp\csparser\CSParser\csparser\CSLexer\Parser.cs:line 4640
at DDW.Parser.ParseBlock(BlockStatement node, Boolean isCase) in D:\temp\csparser\CSParser\csparser\CSLexer\Parser.cs:line 4674
at DDW.Parser.ParseBlock(BlockStatement node) in D:\temp\csparser\CSParser\csparser\CSLexer\Parser.cs:line4654
at DDW.Parser.ParseMethod(IType type, QualifiedIdentifierExpression name) in D:\temp\csparser\CSParser\csparser\CSLexer\Parser.cs:line 2911
at DDW.Parser.ParseClassMember() in D:\temp\csparser\CSParser\csparser\CSLexer\Parser.cs:line 1851
at DDW.Parser.ParseClass() in D:\temp\csparser\CSParser\csparser\CSLexer\Parser.cs:line 1350
at DDW.Parser.ParseNamespaceOrTypes() in D:\temp\csparser\CSParser\csparser\CSLexer\Parser.cs:line 411
at DDW.Parser.ParseNamespace() in D:\temp\csparser\CSParser\csparser\CSLexer\Parser.cs:line 1076
at DDW.Parser.ParseNamespaceOrTypes() in D:\temp\csparser\CSParser\csparser\CSLexer\Parser.cs:line 407
at DDW.Parser.Parse(TokenCollection tokens, List`1 strings) in D:\temp\csparser\CSParser\csparser\CSLexer\Parser.cs:line 353

comments