#fixed code
                             @Test
	public void testAddWorkdaysFromFriday() {
	
		Calendar startDate = Calendar.getInstance();
		// adjust to FRIDAY
		startDate.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY);
		System.out.println("Startdate=" + startDate.getTime());
	
		// adjust -3 Workdays -> THUSEDAY
		Assert.assertEquals(Calendar.TUESDAY,
				workflowSchedulerService.addWorkDays(startDate, 2).get(Calendar.DAY_OF_WEEK));
	
		Assert.assertEquals(Calendar.WEDNESDAY,
				workflowSchedulerService.addWorkDays(startDate, 8).get(Calendar.DAY_OF_WEEK));
	
		Assert.assertEquals(Calendar.FRIDAY,
				workflowSchedulerService.addWorkDays(startDate, 10).get(Calendar.DAY_OF_WEEK));
	
		Assert.assertEquals(Calendar.THURSDAY,
				workflowSchedulerService.addWorkDays(startDate, 14).get(Calendar.DAY_OF_WEEK));
	
	}
#vulnerable code 
                             @Test
	public void testAddWorkdaysFromFriday() {
	
		Calendar startDate = Calendar.getInstance();
		// adjust to FRIDAY
		startDate.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY);
		System.out.println("Startdate=" + startDate.getTime());
	
		// adjust -3 Workdays -> THUSEDAY
		Assert.assertEquals(Calendar.TUESDAY,
				WorkflowSchedulerService.addWorkDays(startDate, 2).get(Calendar.DAY_OF_WEEK));
	
		Assert.assertEquals(Calendar.WEDNESDAY,
				WorkflowSchedulerService.addWorkDays(startDate, 8).get(Calendar.DAY_OF_WEEK));
	
		Assert.assertEquals(Calendar.FRIDAY,
				WorkflowSchedulerService.addWorkDays(startDate, 10).get(Calendar.DAY_OF_WEEK));
	
		Assert.assertEquals(Calendar.THURSDAY,
				WorkflowSchedulerService.addWorkDays(startDate, 14).get(Calendar.DAY_OF_WEEK));
	
	} 
                            #location 17 
                            #vulnerability type NULL_DEREFERENCE