[OLINGO-545] Minor fix

This commit is contained in:
Michael Bolz 2015-03-11 08:43:28 +01:00
parent 31c6716fcb
commit ced93e8f9f
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class FunctionData {
} else if (name.equals("UFCRTETMedia")) {
final int index = parameters.isEmpty() ? 1 : Short.valueOf(parameters.get(0).getText());
final List<Entity> esMedia = data.get("ESMedia").getEntities();
return index < 1 || index > esTwoKeyNav.size() ? null : esMedia.get(index - 1);
return index < 1 || index > esMedia.size() ? null : esMedia.get(index - 1);
} else {
throw new DataProviderException("Function " + name + " is not yet implemented.");
}