#vulnerable code 
                                @Test
    public void determinesItemBSourceSetter() {
        Target target = new Target();

        target.setItemB( new ItemB() );

        SourceWithItemB source = new SourceWithItemB();
        GenericsHierarchyMapper.INSTANCE.intoSourceWithItemB( target, source );

        assertThat( source.getItem().typeParameterIsResolvedToItemB() ).isTrue();
    } 
                            #location 10 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @Test
    public void determinesItemBSourceSetter() {
        Target target = new Target();

        target.setKeyOfAllBeings( new KeyOfAllBeings() );

        Child source = new Child();
        GenericsHierarchyMapper.INSTANCE.updateSourceWithKeyOfAllBeings( target, source );

        assertThat( source.getKey().typeParameterIsResolvedToKeyOfAllBeings() ).isTrue();
    }