incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mschma...@apache.org
Subject svn commit: r1409271 - /incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/fxg/flex/FlexFXG2SWFTranscoder.java
Date Wed, 14 Nov 2012 17:40:49 GMT
Author: mschmalle
Date: Wed Nov 14 17:40:49 2012
New Revision: 1409271

URL: http://svn.apache.org/viewvc?rev=1409271&view=rev
Log:
FLEX-33252 Falcon NPE in FlexFXG2SWFTranscoder Moved definitions initialization to constructor,
in some cases recursion would not call transcode() which would result in the NPE

Modified:
    incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/fxg/flex/FlexFXG2SWFTranscoder.java

Modified: incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/fxg/flex/FlexFXG2SWFTranscoder.java
URL: http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/fxg/flex/FlexFXG2SWFTranscoder.java?rev=1409271&r1=1409270&r2=1409271&view=diff
==============================================================================
--- incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/fxg/flex/FlexFXG2SWFTranscoder.java
(original)
+++ incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/fxg/flex/FlexFXG2SWFTranscoder.java
Wed Nov 14 17:40:49 2012
@@ -121,13 +121,12 @@ public class FlexFXG2SWFTranscoder exten
         anyType = (ITypeDefinition)project.getBuiltinType(IASLanguageConstants.BuiltinType.ANY_TYPE);
         
         nameCounter = new HashMap<String, Integer>();
+        dependencies = new HashMap<String, ITypeDefinition>();
     }
 
     @Override
     public FXGSymbolClass transcode(IFXGNode node, String packageName, String className,
Map<ITag, ITag> extraTags, Collection<ICompilerProblem> problems)
     {
-        dependencies = new HashMap<String, ITypeDefinition>();
-        
         this.packageName = packageName;
         super.transcode(node, packageName, className, extraTags, problems);
         



Mime
View raw message