#vulnerable code 
                                @Test
    public void testStart_WFData() throws Exception {
        Map<Object, Object> map = new HashMap<Object, Object>();

        map.put("process.label", "test");
        swr.bindWorkflowProcesses(new WFDataWorkflowProcess(), map);

        Map<String, Map<String, Object>> metadata = new HashMap<String, Map<String, Object>>();

        swr.start(null,
                "/content/test",
                new String[] {"test"},
                metadata);
    } 
                            #location 10 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @Test
    public void testStart_WFData() throws Exception {
        Map<Object, Object> map = new HashMap<Object, Object>();

        map.put("process.label", "test");
        swr.bindWorkflowProcesses(new WFDataWorkflowProcess(), map);

        Map<String, Map<String, Object>> metadata = new HashMap<String, Map<String, Object>>();

        swr.start(resourceResolver,
                "/content/test",
                new String[] {"test"},
                metadata);
    }