dotliquid / dotliquid

.NET Port of Tobias Lütke's Liquid template language.

Home Page:http://dotliquidmarkup.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template.Parse throws ArgumentNullException instead of SyntaxException

Metalnem opened this issue · comments

Dotliquid version

2.0.298

Expected behavior

The program should throw SyntaxException.

Actual behavior

The program throws ArgumentNullException.

Steps to reproduce the problem

Here is the complete program to reproduce this problem:

namespace DotLiquid.Run
{
  public class Program
  {
    public static void Main(string[] args)
    {
      Template.Parse("{%if% or%}");
    }
  }
}

Found via SharpFuzz.