Skip to content

Suggestion to the XMPtool #2

@jetrotal

Description

@jetrotal

I started using xmp to compare and control file versions.
If the file is fresh new, it doesn't have any value to return through XMPtool.read( ), giving me an error.
What i did here to solve this, was:

instead of returning:
return xmp.getProperty(this.ns, prop).toString();

I Made it return this condition:
return (xmp.getProperty(this.ns, prop)) ? xmp.getProperty(this.ns, prop).toString() : null;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions