[
https://jira.duraspace.org/browse/DS-874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robin Taylor resolved DS-874.
-----------------------------
Resolution: Fixed
Fix Version/s: 1.8.0
Committed to trunk, revsion 6646.
> 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
> Assignee: Robin Taylor
> Fix For: 1.8.0
>
> 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, please contact your JIRA administrators:
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel