#vulnerable code 
                             public static void main(String[] args) {
		String json = "{  \"key1\":333, \"arrayKey\":[444, \"array\"], \"key2\" :  {\"key3\" : \"hello\", \"key4\":\"world\" }, \"booleanKey\" : true }   ";
		JsonObject jsonObject = Json.toJsonObject(json);
		System.out.println(jsonObject.getJsonArray("arrayKey"));
		System.out.println(jsonObject.getJsonObject("key2").getString("key4"));
	} 
                            #location 5 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             public static void main(String[] args) {
		Calendar cal = Calendar.getInstance();
		cal.set(2015, Calendar.JANUARY, 25, 14, 53, 12);
		System.out.println(cal.get(Calendar.HOUR_OF_DAY));
		
		DateFormatObject obj = new DateFormatObject();
		System.out.println(obj);
		obj.init(cal);
		String json = Json.toJson(obj);
		System.out.println(json);
		
		DateFormatObject obj2 = Json.toObject(json, DateFormatObject.class);
		System.out.println(obj2);
	}