#vulnerable code 
                                @SuppressWarnings("ConstantConditions")
    @Test
    public void pullDifferentWebsites() throws IOException, URISyntaxException {
        Swift swift = new Swift()
                .setOnFileObjectStore("object-store");
        website = new WebsiteMock(new AccountMock(swift), "container1");
        website.pullDirectory(this.writeDir);
        assertEquals(2, writeDir.listFiles().length); // 2 files
        website = new WebsiteMock(new AccountMock(swift), "container2");
        website.pullDirectory(this.writeDir);
        assertEquals(5, writeDir.listFiles().length); // 5 files
    } 
                            #location 8 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @SuppressWarnings("ConstantConditions")
    @Test
    public void pullDifferentWebsites() throws IOException, URISyntaxException {
        Swift swift = new Swift()
                .setOnFileObjectStore("object-store", false);
        website = new WebsiteMock(new AccountMock(swift), "container1");
        website.pullDirectory(this.writeDir);
        assertEquals(2, writeDir.listFiles().length); // 2 files
        website = new WebsiteMock(new AccountMock(swift), "container2");
        website.pullDirectory(this.writeDir);
        assertEquals(5, writeDir.listFiles().length); // 5 files
    }