#fixed code
                                @Test
    public void testPropertiesNotBeingCachedOnVertexOut() {

        Vertex v1 = this.sqlgGraph.addVertex(T.label, "Person");
        Vertex v2 = this.sqlgGraph.addVertex(T.label, "Car", "name", "a");
        Vertex v3 = this.sqlgGraph.addVertex(T.label, "Car", "name", "b");
        Vertex v4 = this.sqlgGraph.addVertex(T.label, "Car", "name", "c");

        v1.addEdge("car", v2);
        v1.addEdge("car", v3);
        v1.addEdge("car", v4);

        this.sqlgGraph.tx().commit();

        v1 = this.sqlgGraph.traversal().V(v1.id()).next();
        List<Vertex> cars = vertexTraversal(v1).out("car").toList();
        Assert.assertEquals(3, cars.size());

    }
#vulnerable code 
                                @Test
    public void testPropertiesNotBeingCachedOnVertexOut() {

        Vertex v1 = this.sqlgGraph.addVertex(T.label, "Person");
        Vertex v2 = this.sqlgGraph.addVertex(T.label, "Car", "name", "a");
        Vertex v3 = this.sqlgGraph.addVertex(T.label, "Car", "name", "b");
        Vertex v4 = this.sqlgGraph.addVertex(T.label, "Car", "name", "c");

        v1.addEdge("car", v2);
        v1.addEdge("car", v3);
        v1.addEdge("car", v4);

        this.sqlgGraph.tx().commit();

        v1 = this.sqlgGraph.v(v1.id());
        List<Vertex> cars = vertexTraversal(v1).out("car").toList();
        Assert.assertEquals(3, cars.size());

    } 
                            #location 16 
                            #vulnerability type NULL_DEREFERENCE