flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [15/50] git commit: [flex-asjs] [refs/heads/feature/mdl] - handle null in making short descriptions
Date Mon, 19 Dec 2016 02:18:03 GMT
handle null in making short descriptions


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

Branch: refs/heads/feature/mdl
Commit: c51282f03d85313fdbdb8c33d68529db8cda382b
Parents: 2053d40
Author: Alex Harui <aharui@apache.org>
Authored: Tue Dec 13 08:52:15 2016 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Dec 13 08:52:37 2016 -0800

----------------------------------------------------------------------
 examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c51282f0/examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as b/examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as
index 20a9345..7945983 100644
--- a/examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as
+++ b/examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as
@@ -224,6 +224,7 @@ package models
         
         private function makeShortDescription(input:String):String
         {
+            if (!input) return "";
             var c:int = input.indexOf(".");
             if (c == -1) return input;
             


Mime
View raw message