mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +00:00
[DS874] NullPointerException thrown in GoogleMetadata.java
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6646 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -268,7 +268,7 @@ public class GoogleMetadata
|
|||||||
|
|
||||||
DCValue v = resolveMetadataField(config);
|
DCValue v = resolveMetadataField(config);
|
||||||
|
|
||||||
if (null != v && !v.value.trim().equals(""))
|
if (null != v && (null != v.value) && !v.value.trim().equals(""))
|
||||||
{
|
{
|
||||||
metadataMappings.put(fieldName, v.value);
|
metadataMappings.put(fieldName, v.value);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user