[TEXT-186] StringSubstitutor map constructor throws NPE on 1.9 with null map (original) (raw)

Steps to reproduce

Add a test to StringSubstitutorTest

@Test
public void testConstructorNullMap() {
    Map<String, Object> parameters = null;
    final StringSubstitutor s = new StringSubstitutor(parameters, "prefix", "suffix");
}

Test passes on 1.8. Fails on 1.9 . According to the javadoc, the map value is nullable - https://github.com/apache/commons-text/blob/master/src/main/java/org/apache/commons/text/StringSubstitutor.java#L445