#vulnerable code 
                                @Test
    public void runWithDeadlineSeconds() throws Exception {
        WorkflowJob p = r.jenkins.createProject(WorkflowJob.class, "Deadline");
        p.setDefinition(new CpsFlowDefinition(loadPipelineScript("runWithDeadlineSeconds.groovy")
                , true));
        WorkflowRun b = p.scheduleBuild2(0).waitForStart();
        assertNotNull(b);

        r.waitForMessage("podTemplate", b);

        PodTemplate deadlineTemplate = null;
        for (Iterator<PodTemplate> iterator = cloud.getTemplates().iterator(); iterator.hasNext(); ) {
            PodTemplate template = iterator.next();
            if (template.getLabel() == "deadline") {
                deadlineTemplate = template;
            }
        }
        assertNotNull(deadlineTemplate);
        assertEquals(3600, deadlineTemplate.getDeadlineSeconds());
    } 
                            #location 19 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @Test
    public void runWithDeadlineSeconds() throws Exception {
        WorkflowJob p = r.jenkins.createProject(WorkflowJob.class, "Deadline");
        p.setDefinition(new CpsFlowDefinition(loadPipelineScript("runWithDeadlineSeconds.groovy")
                , true));
        WorkflowRun b = p.scheduleBuild2(0).waitForStart();
        assertNotNull(b);

        r.waitForMessage("podTemplate", b);

        PodTemplate deadlineTemplate = cloud.getTemplates().stream().filter(x -> x.getLabel() == "deadline").findAny().get();

        assertEquals(10, deadlineTemplate.getDeadlineSeconds());
        assertNotNull(deadlineTemplate);
        r.assertLogNotContains("Hello from container!", b);
    }