#vulnerable code 
                                @Test
    public void testLoadingDatasourceFromJndi() throws Exception {
        SqlgGraph g = SqlgGraph.open(configuration);
        assertNotNull(g.getSqlDialect());
        assertNotNull(g.getSqlgDataSource().get(configuration.getString("jdbc.url")));
    } 
                            #location 5 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @Test
    public void testLoadingDatasourceFromJndi() throws Exception {
        SqlgGraph g = SqlgGraph.open(configuration);
        assertNotNull(g.getSqlDialect());
        assertEquals(configuration.getString("jdbc.url"), g.getJdbcUrl());
        assertNotNull(g.getConnection());
    }