[
https://jira.duraspace.org/browse/DS-874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Denys Slipetskyy updated DS-874:
--------------------------------
Attachment: GoogleMetadata.java
fixed file
> NullPointerException possible during item browsing
> --------------------------------------------------
>
> Key: DS-874
> URL: https://jira.duraspace.org/browse/DS-874
> Project: DSpace
> Issue Type: Bug
> Components: DSpace API
> Affects Versions: 1.7.1
> Reporter: Denys Slipetskyy
> Attachments: GoogleMetadata.java
>
> Original Estimate: 1 minute
> Remaining Estimate: 1 minute
>
> Under some circumstances GoogleMetadata class can throw a
> NullPointerException.
> (dspace-api/src/main/java/org/dspace/app/util/GoogleMetadata.java).
> Exception occurs if for some reason value of mapped filed is Null.
> Fix is very simple:
> from line #268
> 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);
> return true;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel