mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 10:34:25 +00:00
[ 1724330 ] Removes "null" being displayed in community-home.jsp
git-svn-id: http://scm.dspace.org/svn/repo/trunk@2154 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -389,7 +389,8 @@ public class Collection extends DSpaceObject
|
|||||||
*/
|
*/
|
||||||
public String getMetadata(String field)
|
public String getMetadata(String field)
|
||||||
{
|
{
|
||||||
return collectionRow.getStringColumn(field);
|
String metadata = collectionRow.getStringColumn(field);
|
||||||
|
return (metadata == null) ? "" : metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -346,7 +346,8 @@ public class Community extends DSpaceObject
|
|||||||
*/
|
*/
|
||||||
public String getMetadata(String field)
|
public String getMetadata(String field)
|
||||||
{
|
{
|
||||||
return communityRow.getStringColumn(field);
|
String metadata = communityRow.getStringColumn(field);
|
||||||
|
return (metadata == null) ? "" : metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user