Skip to content

Template.Parse throws ArgumentNullException instead of SyntaxException #333

@Metalnem

Description

@Metalnem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions