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

        target.setItemC( new ItemC() );

        SourceWithItemC source = new SourceWithItemC();
        GenericsHierarchyMapper.INSTANCE.intoSourceWithItemC( target, source );

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

        target.setAnimalKey( new AnimalKey() );

        Elephant source = new Elephant();
        GenericsHierarchyMapper.INSTANCE.updateSourceWithAnimalKey( target, source );

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