User: vharcq
Date: 02/03/25 12:16:59
Modified: core/src/xdoclet/ejb/tags/vendor
JBossRelationTagsHandler.java
Log:
Just avoid NPE in jboss 3 cmp subtask
I did not verify if the dd is correct
Revision Changes Path
1.5 +11 -1
xdoclet/core/src/xdoclet/ejb/tags/vendor/JBossRelationTagsHandler.java
Index: JBossRelationTagsHandler.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/ejb/tags/vendor/JBossRelationTagsHandler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -r1.4 -r1.5
--- JBossRelationTagsHandler.java 24 Mar 2002 17:44:18 -0000 1.4
+++ JBossRelationTagsHandler.java 25 Mar 2002 20:16:59 -0000 1.5
@@ -9,7 +9,7 @@
/**
* @author <a href="mailto:[EMAIL PROTECTED]">David Budworth</a>
* @created Feb 4, 2002
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class JBossRelationTagsHandler extends RelationTagsHandler
{
@@ -110,6 +110,8 @@
private boolean leftHasFKConstraint() throws XDocletException
{
+ if (currentRelation.getLeftMethod() == null)
+ return false;
return getTagValue(
currentRelation.getLeftMethod().doc(),
"jboss:relation",
@@ -134,6 +136,9 @@
false
) != null;
else
+ {
+ if (currentRelation.getLeftMethod() == null)
+ return false;
return getTagValue(
currentRelation.getLeftMethod().doc(),
"jboss:target-relation",
@@ -144,9 +149,12 @@
false
) != null;
}
+ }
private boolean leftHasFK() throws XDocletException
{
+ if (currentRelation.getLeftMethod() == null)
+ return false;
return currentRelation.getLeftMethod().doc().hasTag( "jboss:relation"
);
}
@@ -158,6 +166,8 @@
}
else
{
+ if (currentRelation.getLeftMethod() == null)
+ return false;
return currentRelation.getLeftMethod().doc().hasTag(
"jboss:target-relation" );
}
}
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel