You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/10/22 00:37:07 UTC

[15/50] git commit: [flex-sdk] [refs/heads/master] - Fix a bug in SWFDump

Fix a bug in SWFDump


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/90aa204d
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/90aa204d
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/90aa204d

Branch: refs/heads/master
Commit: 90aa204da1f5d4f038ebd3e555c5402f48fcaa76
Parents: 23d9fda
Author: Alex Harui <ah...@apache.org>
Authored: Thu Oct 10 21:09:16 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Oct 10 23:18:39 2013 -0700

----------------------------------------------------------------------
 modules/swfutils/src/java/flash/swf/tools/AbcPrinter.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/90aa204d/modules/swfutils/src/java/flash/swf/tools/AbcPrinter.java
----------------------------------------------------------------------
diff --git a/modules/swfutils/src/java/flash/swf/tools/AbcPrinter.java b/modules/swfutils/src/java/flash/swf/tools/AbcPrinter.java
index 4fe4198..73c7e3f 100644
--- a/modules/swfutils/src/java/flash/swf/tools/AbcPrinter.java
+++ b/modules/swfutils/src/java/flash/swf/tools/AbcPrinter.java
@@ -771,6 +771,8 @@ public class AbcPrinter
         	if (mn.kind != 0x1D)
         		continue;
         	MultiName typeName = mn.typeName;
+        	if (typeName == null) // this came up as null in a working SWF.
+        		continue;
         	if (typeName.kind == 0x1D)
         		out.println(kAbcCorrupt + "typename is also a typename");
         	HashMap<MultiName, String> seenMap = new HashMap<MultiName, String>();