Oops, does this mean that there can be association ends without a type? How?
Cheers... Matthias > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Chad Brandon > Sent: Monday, March 01, 2004 2:31 PM > To: [EMAIL PROTECTED] > Subject: [Andromda-cvs] CVS update: > cartridges/andromda-meta/src/facades/manual/org/andromda/cartr > idges/meta/metafacades MetafacadeAssociationEndFacadeLogicImpl.java > > > User: cwbrandon > Date: 04/03/01 05:31:29 > > Modified: > andromda-meta/src/facades/manual/org/andromda/cartridges/meta/ > metafacades > Tag: V3x_MMD > MetafacadeAssociationEndFacadeLogicImpl.java > Log: > remove the possibility of a null pointer occuring if no > type has been specified > > Revision Changes Path > No revision > > > No revision > > > 1.1.2.2 +6 -2 > cartridges/andromda-meta/src/facades/manual/org/andromda/cartr > idges/meta/metafacades/Attic/MetafacadeAssociationEndFacadeLog > icImpl.java > > Index: MetafacadeAssociationEndFacadeLogicImpl.java > =================================================================== > RCS file: > /cvsroot/andromda/cartridges/andromda-meta/src/facades/manual/ > org/andromda/cartridges/meta/metafacades/Attic/MetafacadeAssoc > iationEndFacadeLogicImpl.java,v > retrieving revision 1.1.2.1 > retrieving revision 1.1.2.2 > diff -u -w -r1.1.2.1 -r1.1.2.2 > --- MetafacadeAssociationEndFacadeLogicImpl.java 29 Feb > 2004 21:09:41 -0000 1.1.2.1 > +++ MetafacadeAssociationEndFacadeLogicImpl.java 1 Mar > 2004 13:31:29 -0000 1.1.2.2 > @@ -42,12 +42,16 @@ > : lm.getTo("datatype.Collection"); > } > > + String typeName = null; > // If single element, then return the type. > // However, return the interface type, not the > // implementation class type! > MetafacadeFacade otherMetafacade = > - (MetafacadeFacade) (getOtherEnd().getType()); > - return otherMetafacade.getFullyQualifiedInterfaceName(); > + (MetafacadeFacade) getOtherEnd().getType(); > + if (otherMetafacade != null) { > + typeName = > otherMetafacade.getFullyQualifiedInterfaceName(); > + } > + return typeName; > } > > /** > > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Andromda-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-cvs ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Andromda-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-devel