rafalszemraj / fabrication

Automatically exported from code.google.com/p/fabrication
2 stars 1 forks source link

FabricationMediator listNotificationInterests() Trying to access a property of a null object reference #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Changed SDK from Flex 3 to Gumbo 4 (stable release)
2. FabricationMediator listNotificationInterests() threw an exception

The problem is that var respondToMethodsCount:int = 
respondToMethods.children().length() generates the length of ALL children 
in xml thus causing the loop

for (var i:int = 0;i < respondToMethodsCount; i++) {
                methodXML = respondToMethods[i];
                methodName = methodXML.@name;

}

to get beyond the limits. 

Same thing applies to var reactionMethodsCount:int = reactionMethods.length
();

Solution change .children.length() to .length()

Original issue reported on code.google.com by a.mikhai...@gmail.com on 19 May 2009 at 8:16

GoogleCodeExporter commented 9 years ago
A similar patch was submitted by Simon White earlier[1]. Please compile a new 
swc 
with ant swc to get this fix. The next version of the release swc will get this.

[1] : http://code.google.com/p/fabrication/source/detail?r=161

Original comment by darshan....@gmail.com on 20 May 2009 at 9:35

GoogleCodeExporter commented 9 years ago
Thanks, darshan.
Keep up the great work!

Original comment by a.mikhai...@gmail.com on 20 May 2009 at 3:55