You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org> on 2006/11/30 17:58:24 UTC
[jira] Resolved: (TUSCANY-951) NullPointerException when setting an
invalid property
[ http://issues.apache.org/jira/browse/TUSCANY-951?page=all ]
Kelvin Goodson resolved TUSCANY-951.
------------------------------------
Fix Version/s: Java-M2
Java-Mx
Resolution: Duplicate
This is an instance of the issue in TUSCANY-578. In this case its the variant of the issue where the spec isn't specific about the type of exception should be thrown, and the changes made under TUSCANY-885 have altered the behaviour of the tuscany implementation without violating the spec. I'm going to transfer this into the TUSCANY-885 bucket defect for consideration, but my feeling is that this is not a bug.
> NullPointerException when setting an invalid property
> -----------------------------------------------------
>
> Key: TUSCANY-951
> URL: http://issues.apache.org/jira/browse/TUSCANY-951
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Reporter: Brent Daniel
> Fix For: Java-M2, Java-Mx
>
>
> Calling set() with an invalid property name results in a NullPointerException. For example:
> dataObject.setInt("invalidProperty", 5);
> results in:
> java.lang.NullPointerException
> at org.apache.tuscany.sdo.util.DataObjectUtil.getSetValue(DataObjectUtil.java:1440)
> at org.apache.tuscany.sdo.util.DataObjectUtil.setInt(DataObjectUtil.java:537)
> at org.apache.tuscany.sdo.impl.DataObjectImpl.setInt(DataObjectImpl.java:526)
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org