[ https://issues.apache.org/jira/browse/KYLIN-4252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17126269#comment-17126269 ]
nichunen commented on KYLIN-4252: --------------------------------- Verified. > Fix the error "Cannot read property 'index' of null" in visualization page > -------------------------------------------------------------------------- > > Key: KYLIN-4252 > URL: https://issues.apache.org/jira/browse/KYLIN-4252 > Project: Kylin > Issue Type: Bug > Components: Web > Affects Versions: v3.0.0 > Reporter: wu.kehua > Assignee: wu.kehua > Priority: Major > Fix For: v2.6.5, v3.1.0, v3.0.1 > > Attachments: image-2019-12-18-10-07-19-107.png > > > # Execute "select PART_DT,sum(PRICE) from KYLIN_SALES group by PART_DT" > # Expand "Query String" > # Then click "visualization" to show the chart > # If we choose the "-- choose metrics --" firstly, then we reopen Metrics > drop-down box, then we can't see full metric options. > !image-2019-12-18-10-07-19-107.png! > > Then I analyse this operation will cause the error "Cannot read property > 'index' of null" in visualization page, as follows: > {code:java} > message: "Cannot read property 'index' of null" > stack: "TypeError: Cannot read property 'index' of null? at > http://kylin_server:7070/kylin/js/scripts.min.20191108164741.js:55197:69? > at Object.forEach > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)