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 <[email protected]>
Authored: Tue Dec 13 08:52:15 2016 -0800
Committer: Alex Harui <[email protected]>
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;
             

Reply via email to