#fixed code
                                @Test(expected = NullPointerException.class)
    public void testCreateNull() {
        new TemplateList(null,(String[]) null);
    }
#vulnerable code 
                                @Test(expected = NullPointerException.class)
    public void testCreateNull() {
        new PatternList((String[]) null);
    } 
                            #location 3 
                            #vulnerability type NULL_DEREFERENCE