mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +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)
|
for (BitstreamFormat format : formats)
|
||||||
{
|
{
|
||||||
List<String> extensions = format.getExtensions();
|
List<String> extensions = format.getExtensions();
|
||||||
StringBuilder extValue = new StringBuilder(256);
|
StringBuilder extValueBuilder = new StringBuilder(256);
|
||||||
|
if (null != extensions)
|
||||||
for (String extension : 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>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
Reference in New Issue
Block a user