float data format func bug

Signed-off-by: shaofengshi <shaofeng...@apache.org>


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

Branch: refs/heads/KYLIN-1875
Commit: c8dfa13e633517bbfde7125ce286429f643e5af6
Parents: 2b7fe61
Author: luguosheng <550175...@qq.com>
Authored: Tue Nov 22 18:50:52 2016 +0800
Committer: shaofengshi <shaofeng...@apache.org>
Committed: Tue Nov 22 21:43:54 2016 +0800

----------------------------------------------------------------------
 webapp/app/js/utils/utils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/c8dfa13e/webapp/app/js/utils/utils.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/utils/utils.js b/webapp/app/js/utils/utils.js
index aabcad5..9da6196 100644
--- a/webapp/app/js/utils/utils.js
+++ b/webapp/app/js/utils/utils.js
@@ -67,7 +67,7 @@ KylinApp.factory('VdmUtil', function ($modal, $timeout, 
$location, $anchorScroll
 
     SCToFloat:function(data){
       var resultValue = "";
-      if (data.indexOf('E') != -1){
+      if (data&&data.indexOf('E') != -1){
         var regExp = new RegExp('^((\\d+.?\\d+)[Ee]{1}(\\d+))$', 'ig');
         var result = regExp.exec(data);
         var power = "";

Reply via email to