flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - handle null asdoc tokens
Date Fri, 03 Oct 2014 06:03:26 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop b51119845 -> e4ade467c


handle null asdoc tokens


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

Branch: refs/heads/develop
Commit: e4ade467caee79d22eea2e8138fb563a8f54e419
Parents: b511198
Author: Alex Harui <aharui@apache.org>
Authored: Thu Oct 2 23:00:06 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Oct 2 23:00:06 2014 -0700

----------------------------------------------------------------------
 .../flex/compiler/internal/parsing/as/FlexJSASDocDelegate.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e4ade467/compiler.jx/src/org/apache/flex/compiler/internal/parsing/as/FlexJSASDocDelegate.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/parsing/as/FlexJSASDocDelegate.java
b/compiler.jx/src/org/apache/flex/compiler/internal/parsing/as/FlexJSASDocDelegate.java
index c2fd2aa..9c45fa0 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/parsing/as/FlexJSASDocDelegate.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/parsing/as/FlexJSASDocDelegate.java
@@ -80,6 +80,9 @@ public final class FlexJSASDocDelegate implements IASDocDelegate
         @Override
         public IASDocComment afterDefinition(IDocumentableDefinitionNode definitionNode)
         {
+            if (currentToken == null)
+                return null;
+            
             return new ASDocComment(currentToken);
         }
 


Mime
View raw message