Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Template.Parse throws ArgumentNullException instead of SyntaxException #333

Copy link
Copy link

Description

@Metalnem
Issue body actions

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.

Reactions are currently unavailable

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.