williammartin / illuminator

Reflection library for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NullPointerException thrown if an argument passed to a constructor is null

williammartin opened this issue · comments

See: the following (badly named) test:

@Test
public void constructShouldDoSomethingSensibleWithNullArguments() {

    Person testPerson = Illuminator
                            .illuminate(Person.class)
                            .construct(null);

    Assert.assertEquals(NAME, testPerson.getName());
}

Whoops.