User: vharcq  
  Date: 02/03/17 02:59:03

  Modified:    core/resources/xdoclet/ejb entitypk.j
  Log:
  Avoid a NPE in hashCode()
  
  Revision  Changes    Path
  1.18      +1 -1      xdoclet/core/resources/xdoclet/ejb/entitypk.j
  
  Index: entitypk.j
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/resources/xdoclet/ejb/entitypk.j,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -w -r1.17 -r1.18
  --- entitypk.j        5 Feb 2002 23:42:10 -0000       1.17
  +++ entitypk.j        17 Mar 2002 10:59:02 -0000      1.18
  @@ -66,7 +66,7 @@
           </XDtType:ifIsNotOfType>
          </XDtType:ifIsPrimitive>
          <XDtType:ifIsNotPrimitive value="<XDtMethod:methodType/>">
  -         _hashCode += this.<XDtMethod:propertyName/>.hashCode();
  +         if (this.<XDtMethod:propertyName/> != null) _hashCode += 
this.<XDtMethod:propertyName/>.hashCode();
          </XDtType:ifIsNotPrimitive>
         </XDtEjbPersistent:forAllPersistentFields>
         }
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to