[
https://issues.apache.org/jira/browse/OPENEJB-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13793999#comment-13793999
]
Patrick Pfeifer commented on OPENEJB-2042:
------------------------------------------
FYI: The "other NPE" happens on line 358 of
tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/OpenEjb2Conversion.java@1529473
where "leftRole.getCmrField()" returns null on a relation mapping where
the cmr-field's database name for the relation is specified but the
entity name is only defined in "ejb-jar.xml" and would have to be digged
out from there using the role name as key .... .... sorry ... can't show
you the dd this is based on, so leave it for now. Will get back to it by
the end of the year. ...
> Possible null pointer dereference in OpenEjb2Conversion
> -------------------------------------------------------
>
> Key: OPENEJB-2042
> URL: https://issues.apache.org/jira/browse/OPENEJB-2042
> Project: OpenEJB
> Issue Type: Bug
> Affects Versions: (trunk/tomee)
> Reporter: Patrick Pfeifer
> Assignee: Andy Gumbrecht
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> I experienced an NPE on a different line in the same source file while trying
> to get EJB 2.1 One-to-One Relations with <foreign-key-column-on-source> to
> work for a customer project.
> I have not achieved this yet and haven't got a small test case either.
> What I can already say for sure however, after studying the code, is that
> there is a bug on line 440/441 of
> tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/OpenEjb2Conversion.java@1529473
> ---
> if (left == null) {
> RelationField right = left.getRelatedField();
> ---
--
This message was sent by Atlassian JIRA
(v6.1#6144)