Some null guards needed in MediatorImpl
---------------------------------------
Key: TUSCANY-2217
URL: https://issues.apache.org/jira/browse/TUSCANY-2217
Project: Tuscany
Issue Type: Bug
Components: Java SCA Data Binding Runtime
Affects Versions: Java-SCA-1.1
Reporter: Scott Kurz
Fix For: Java-SCA-Next
I think we should add guards to MediatorImpl.mediate() so that:
- We don't do the introspectType(source) if 'source' is null
- We simply return 'source' if 'targetDataType' is null
While, for some methods, we might put the burden on the caller to check, this
method is already one that can handle nulls for certain objs, and we want to
possibly allow transforming a null
'source', so it seems better to make the mediate() method itself more robust.
I'll attach a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]