flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/2] git commit: [flex-sdk] - be more tolerant of bad multinames
Date Tue, 30 Apr 2013 19:14:19 GMT
Updated Branches:
  refs/heads/develop d82c76628 -> 4738923f3


be more tolerant of bad multinames


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

Branch: refs/heads/develop
Commit: 77ed79cfae3b6b5325c0b91d9255b03fd73a3294
Parents: d82c766
Author: Alex Harui <aharui@apache.org>
Authored: Tue Apr 30 11:50:54 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Apr 30 11:51:14 2013 -0700

----------------------------------------------------------------------
 .../src/java/flash/swf/tools/AbcPrinter.java       |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/77ed79cf/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 bf2f9f7..8baafa0 100644
--- a/modules/swfutils/src/java/flash/swf/tools/AbcPrinter.java
+++ b/modules/swfutils/src/java/flash/swf/tools/AbcPrinter.java
@@ -1419,9 +1419,16 @@ public class AbcPrinter
                 s += "null";
                 break;
             case 0x1D:
-                s += typeName.toString();
-                for (int t = 0; t < types.length; t++)
-                    s += types[t].toString();
+				s += (typeName != null) ? typeName.toString() : "nullTypeName";
+				if (types != null)
+				{
+					for (int t = 0; t < types.length; t++)
+						s += (types[t] != null) ? types[t].toString() : "nullType";
+				}
+				else {
+					s += "no types";
+				}
+
             }
             return s;
         }


Mime
View raw message