Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
package microsoft.exchange.webservices.data;

import java.util.ArrayList;

import javax.xml.stream.XMLStreamException;

/**
Expand Down Expand Up @@ -109,7 +108,7 @@ protected void writeElementsToXml(EwsServiceXmlWriter writer)
writer
.writeStartElement(XmlNamespace.Types,
XmlElementNames.Values);
for (int index = 0; index <= array.size(); index++) {
for (int index = 0; index < array.size(); index++) {
writer.writeElementValue(XmlNamespace.Types,
XmlElementNames.Value, MapiTypeConverter
.convertToString(this.getPropertyDefinition()
Expand Down Expand Up @@ -174,7 +173,7 @@ private String getStringValue() {
} else {
StringBuilder sb = new StringBuilder();
sb.append("[");
for (int index = 0; index <= array.size(); index++) {
for (int index = 0; index < array.size(); index++) {
sb.append(MapiTypeConverter.convertToString(this
.getPropertyDefinition().getMapiType(), array
.get(index)));
Expand Down