#vulnerable code 
                             @Test
	public void testConstructor5(){
		ClassCastInputCSVException e = new ClassCastInputCSVException(Integer.valueOf(23), String.class, ANONYMOUS_CSVCONTEXT, PROCESSOR);
		assertEquals(ANONYMOUS_CSVCONTEXT, e.getCsvContext());
		assertEquals(PROCESSOR, e.getOffendingProcessor());
		e.printStackTrace();
		
		// test with null received value
		e = new ClassCastInputCSVException(null, String.class, ANONYMOUS_CSVCONTEXT, PROCESSOR);
		assertEquals(ANONYMOUS_CSVCONTEXT, e.getCsvContext());
		assertEquals(PROCESSOR, e.getOffendingProcessor());
		e.printStackTrace();
		
		// test with null received, expected, context and processor
		e = new ClassCastInputCSVException(null, null, (CSVContext) null, (CellProcessor) null);
		assertNull(e.getMessage());
		assertNull(e.getCsvContext());
		assertNull(e.getOffendingProcessor());
		e.printStackTrace();
	} 
                            #location 15 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             @Test
	public void testConstructor5() {
		ClassCastInputCSVException e = new ClassCastInputCSVException(Integer.valueOf(23), String.class,
			ANONYMOUS_CSVCONTEXT, PROCESSOR);
		assertEquals(ANONYMOUS_CSVCONTEXT, e.getCsvContext());
		assertEquals(PROCESSOR, e.getOffendingProcessor());
		e.printStackTrace();
		
		// test with null received value
		e = new ClassCastInputCSVException(null, String.class, ANONYMOUS_CSVCONTEXT, PROCESSOR);
		assertEquals(ANONYMOUS_CSVCONTEXT, e.getCsvContext());
		assertEquals(PROCESSOR, e.getOffendingProcessor());
		e.printStackTrace();
		
		// test with null received, expected, context and processor
		try {
			e = new ClassCastInputCSVException(null, null, (CSVContext) null, (CellProcessor) null);
			fail("should have thrown NullPointerException");
		}
		catch(NullPointerException npe) {}
		
	}