PortletFileRepositoryUtil.getPortletFileEntry(</BUG>
smallImageImageSelector.getImageId());
smallImageFileEntryId = addSmallImageFileEntry(
userId, entry.getGroupId(), entry.getEntryId(),
<BUG>tempFileEntry.getMimeType(), tempFileEntry.getTitle(),
tempFileEntry.getContentStream());

PortletFileRepositoryUtil.deletePortletFileEntry(
tempFileEntry.getFileEntryId());</BUG>
}

entry.getSmallImageFileEntryId()) {
if (entry.getSmallImageFileEntryId() != 0) {
PortletFileRepositoryUtil.deletePortletFileEntry(
entry.getSmallImageFileEntryId());
}
tempSmallImageFileEntry =
PortletFileRepositoryUtil.getPortletFileEntry(
smallImageImageSelector.getImageId());
smallImageFileEntryId = addSmallImageFileEntry(
userId, entry.getGroupId(), entry.getEntryId(),
tempSmallImageFileEntry.getMimeType(),
tempSmallImageFileEntry.getTitle(),
tempSmallImageFileEntry.getContentStream());
