#vulnerable code 
                                @Test
    public void canFindOne() throws Exception {
        /* given */
        String id = collection.save(this.people);

        /* when */
        People people = collection.findOne("{name:#}", "John").as(People.class);

        /* then */
        assertThat(people.getId()).isEqualTo(id);
    } 
                            #location 10 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @Test
    public void canFindOne() throws Exception {
        /* given */
        String id = collection.save(new People("John", new Coordinate(1, 1)));

        /* when */
        People result = collection.findOne("{name:#}", "John").as(People.class);

        /* then */
        assertThat(result.getId()).isEqualTo(id);
    }