package com.hubspot.jinjava.el.ext;

public class NamedParameter {

  private final String name;
  private final Object value;

  public NamedParameter(String name, Object value) {
    this.name = name;
    this.value = value;
  }

  public String getName() {
    return name;
  }

  public Object getValue() {
    return value;
  }

  @Override
  public String toString() {
    return value.toString();
  }

}

@@ -30,16 +30,43 @@
 l.ext;%0A%0A
+import java.util.Objects;%0A%0A
 public c
@@ -402,24 +402,41 @@
 %0A    return 
+Objects.toString(
 value.toStri
@@ -439,16 +439,21 @@
 String()
+, %22%22)
 ;%0A  %7D%0A%0A%7D

fix npe when named parameter value is null