You're welcome. Well you probably could just make the change yourself and rebuild, its just a simple check in the getDefaultValue() method for null before calling "getBody()" from "metaObject.getInitialValue()" in the AttributeFacadeLogicImpl class.
--- Bob Muller <[EMAIL PROTECTED]> wrote: > Thanks for the quick response. > > I'm in a kind of tight schedule situation and I > don't want to get everything from CVS because of the > large number of recent changes. Is there a small > subset of files I can update to fix this without > updating the whole tree? > > > ------------Original Message------------ > > From: Chad Brandon <[EMAIL PROTECTED]> > > To: Bob Muller <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > > Date: Wed, Jun-16-2004 2:14 PM > > Subject: Re: [Andromda-user] Issue with getting > default value > > > > Hi Bob, > > > > That's fixed in CVS. > > > > Chad > > > > --- Bob Muller <[EMAIL PROTECTED]> wrote: > > > When I loop through attributes in a cartridge > > > Velocity template and try to get the default > value, > > > I get this exception: > > > > > > Caused by: > > > > > > org.apache.velocity.exception.MethodInvocationException: > > > Invocation of method 'getDefaultValue' in class > > > > > > org.andromda.metafacades.uml14.AttributeFacadeLogicImpl > > > threw exception class > java.lang.NullPointerException > > > : null > > > at > > > > > > org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) > > > at > > > > > > org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference..java:175) > > > at > > > > > > org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) > > > at > > > > > > org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock..java:55) > > > at > > > > > > org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) > > > at > > > > > > org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) > > > at > > > > > > org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) > > > at > > > > > > org.apache.velocity.Template.merge(Template.java:256) > > > at > > > > > > org.andromda.templateengines.velocity.VelocityTemplateEngine.processTemplate(VelocityTemplateEngine.java:204) > > > at > > > > > > org.andromda.core.cartridge.Cartridge.processWithTemplate(Cartridge.java:329) > > > ... 66 more > > > > > > > > > Here's the code: > > > #foreach ($att in $class.attributes) > > > // Default value for $att.name: > $att.defaultValue > > > #end > > > > > > Has anybody seen and resolved this issue? > > > > > > --Bob Muller > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by The 2004 > > > JavaOne(SM) Conference > > > Learn from the experts at JavaOne(SM), Sun's > > > Worldwide Java Developer > > > Conference, June 28 - July 1 at the Moscone > Center > > > in San Francisco, CA > > > REGISTER AND SAVE! > http://java.sun.com/javaone/sf > > > Priority Code NWMGYKND > > > _______________________________________________ > > > Andromda-user mailing list > > > [EMAIL PROTECTED] > > > > > > https://lists.sourceforge.net/lists/listinfo/andromda-user > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by The 2004 > JavaOne(SM) Conference > > Learn from the experts at JavaOne(SM), Sun's > Worldwide Java Developer > > Conference, June 28 - July 1 at the Moscone Center > in San Francisco, CA > > REGISTER AND SAVE! http://java.sun.com/javaone/sf > Priority Code NWMGYKND > > _______________________________________________ > > Andromda-user mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/andromda-user > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 > JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's > Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center > in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf > Priority Code NWMGYKND > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user > ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
