#vulnerable code 
                              @Test
  public void testView() throws IOException {
    AclFileAttributeView view =
        service.getFileAttributeView(fileSupplier(), AclFileAttributeView.class);
    assertNotNull(view);

    ASSERT.that(view.name()).is("acl");

    ASSERT.that(view.getAcl()).is(defaultAcl);
    ASSERT.that(view.getOwner()).is(USER);

    view.setAcl(ImmutableList.<AclEntry>of());
    view.setOwner(FOO);

    ASSERT.that(view.getAcl()).is(ImmutableList.<AclEntry>of());
    ASSERT.that(view.getOwner()).is(FOO);

    ASSERT.that(file.getAttribute("acl:acl")).is(ImmutableList.<AclEntry>of());
  } 
                            #location 7 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                              @Test
  public void testView() throws IOException {
    AclFileAttributeView view = provider.getView(attributeStoreSupplier());
    assertNotNull(view);

    ASSERT.that(view.name()).is("acl");

    ASSERT.that(view.getAcl()).is(defaultAcl);

    view.setAcl(ImmutableList.<AclEntry>of());
    view.setOwner(FOO);

    ASSERT.that(view.getAcl()).is(ImmutableList.<AclEntry>of());
    ASSERT.that(view.getOwner()).is(FOO);

    ASSERT.that(store.getAttribute("acl:acl")).is(ImmutableList.<AclEntry>of());
  }