#fixed code
                             @Test
	public void example2() throws Throwable {
		VTimezone usEasternTz;
		ICalendar ical = new ICalendar();
		ical.getProperties().clear();
		ical.setProductId("-//RDU Software//NONSGML HandCal//EN");
		ical.setVersion(Version.v2_0());
		{
			usEasternTz = new VTimezone(null);
			usEasternTz.setTimezoneId("America/New_York");
			{
				StandardTime standard = new StandardTime();
				standard.setDateStart(localFormatter.parse("19981025T020000"));
				standard.setTimezoneOffsetFrom(-4, 0);
				standard.setTimezoneOffsetTo(-5, 0);
				standard.addTimezoneName("EST");
				usEasternTz.addStandardTime(standard);
			}
			{
				DaylightSavingsTime daylight = new DaylightSavingsTime();
				daylight.setDateStart(localFormatter.parse("19990404T020000"));
				daylight.setTimezoneOffsetFrom(-5, 0);
				daylight.setTimezoneOffsetTo(-4, 0);
				daylight.addTimezoneName("EDT");
				usEasternTz.addDaylightSavingsTime(daylight);
			}
			ical.addTimezone(usEasternTz);
		}
		{
			VEvent event = new VEvent();
			event.setDateTimeStamp(utcFormatter.parse("19980309T231000"));
			event.setUid("guid-1.example.com");
			event.setOrganizer("mrbig@example.com");

			Attendee attendee = Attendee.email("employee-A@example.com");
			attendee.setRsvp(true);
			attendee.setRole(Role.REQ_PARTICIPANT);
			attendee.setCalendarUserType(CalendarUserType.GROUP);
			event.addAttendee(attendee);

			event.setDescription("Project XYZ Review Meeting");
			event.addCategories("MEETING");
			event.setClassification(Classification.public_());
			event.setCreated(utcFormatter.parse("19980309T130000"));
			event.setSummary("XYZ Project Review");
			event.setDateStart(usEasternFormatter.parse("19980312T083000")).setTimezone(usEasternTz);
			event.setDateEnd(usEasternFormatter.parse("19980312T093000")).setTimezone(usEasternTz);
			event.setLocation("1CP Conference Room 4350");
			ical.addEvent(event);
		}

		assertWarnings(0, ical.validate());
		assertExample(ical, "rfc5545-example2.ics");
	}
#vulnerable code 
                             @Test
	public void example2() throws Throwable {
		VTimezone usEasternTz;
		ICalendar ical = new ICalendar();
		ical.getProperties().clear();
		ical.setProductId("-//RDU Software//NONSGML HandCal//EN");
		ical.setVersion(Version.v2_0());
		{
			usEasternTz = new VTimezone(null);
			usEasternTz.setTimezoneId("America/New_York");
			{
				StandardTime standard = new StandardTime();
				standard.setDateStart(localFormatter.parse("19981025T020000")).setLocalTime(true);
				standard.setTimezoneOffsetFrom(-4, 0);
				standard.setTimezoneOffsetTo(-5, 0);
				standard.addTimezoneName("EST");
				usEasternTz.addStandardTime(standard);
			}
			{
				DaylightSavingsTime daylight = new DaylightSavingsTime();
				daylight.setDateStart(localFormatter.parse("19990404T020000")).setLocalTime(true);
				daylight.setTimezoneOffsetFrom(-5, 0);
				daylight.setTimezoneOffsetTo(-4, 0);
				daylight.addTimezoneName("EDT");
				usEasternTz.addDaylightSavingsTime(daylight);
			}
			ical.addTimezone(usEasternTz);
		}
		{
			VEvent event = new VEvent();
			event.setDateTimeStamp(utcFormatter.parse("19980309T231000"));
			event.setUid("guid-1.example.com");
			event.setOrganizer("mrbig@example.com");

			Attendee attendee = Attendee.email("employee-A@example.com");
			attendee.setRsvp(true);
			attendee.setRole(Role.REQ_PARTICIPANT);
			attendee.setCalendarUserType(CalendarUserType.GROUP);
			event.addAttendee(attendee);

			event.setDescription("Project XYZ Review Meeting");
			event.addCategories("MEETING");
			event.setClassification(Classification.public_());
			event.setCreated(utcFormatter.parse("19980309T130000"));
			event.setSummary("XYZ Project Review");
			event.setDateStart(usEasternFormatter.parse("19980312T083000")).setTimezone(usEasternTz);
			event.setDateEnd(usEasternFormatter.parse("19980312T093000")).setTimezone(usEasternTz);
			event.setLocation("1CP Conference Room 4350");
			ical.addEvent(event);
		}

		assertWarnings(0, ical.validate());
		assertExample(ical, "rfc5545-example2.ics");
	} 
                            #location 13 
                            #vulnerability type NULL_DEREFERENCE