#vulnerable code 
                                @Test
    public void ignoreFoldersOnPushing() throws IOException, URISyntaxException {
        Swift swift = new Swift()
                .setOnFileObjectStore("websites");
        website = new WebsiteMock(new AccountMock(swift), "website")
                .setIgnoreFilters(new String[] {"script"} );
        website.pushDirectory(FileAction.getFile("websites/website"));
        assertEquals(4, website.list().size());
    } 
                            #location 7 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @Test
    public void ignoreFoldersOnPushing() throws IOException, URISyntaxException {
        Swift swift = new Swift()
                .setOnFileObjectStore("websites", false);
        website = new WebsiteMock(new AccountMock(swift), "website")
                .setIgnoreFilters(new String[] {"script"} );
        website.pushDirectory(FileAction.getFile("websites/website"));
        assertEquals(4, website.list().size());
    }