mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[DS-3184] Skip building String list of extensions from null List
This commit is contained in:
@@ -84,16 +84,19 @@
|
||||
for (BitstreamFormat format : formats)
|
||||
{
|
||||
List<String> extensions = format.getExtensions();
|
||||
StringBuilder extValue = new StringBuilder(256);
|
||||
|
||||
for (String extension : extensions)
|
||||
StringBuilder extValueBuilder = new StringBuilder(256);
|
||||
if (null != extensions)
|
||||
{
|
||||
if (extValue.length() > 0)
|
||||
for (String extension : extensions)
|
||||
{
|
||||
extValue.append(", ");
|
||||
if (extValueBuilder.length() > 0)
|
||||
{
|
||||
extValueBuilder.append(", ");
|
||||
}
|
||||
extValueBuilder.append(extension);
|
||||
}
|
||||
extValue.append(extension);
|
||||
}
|
||||
String extValue = extValueBuilder.toString();
|
||||
%>
|
||||
<tr>
|
||||
<td>
|
||||
|
Reference in New Issue
Block a user