You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2017/02/14 10:19:41 UTC

[jira] [Assigned] (KYLIN-2268) Potential NPE in ModelDimensionDesc#init()

     [ https://issues.apache.org/jira/browse/KYLIN-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shaofeng SHI reassigned KYLIN-2268:
-----------------------------------

                Assignee: Billy Liu
    Request participants:   (was: )
           Fix Version/s: v2.0.0
             Component/s: Metadata

I see Billy Liu has fixed it in commit c64f55b2e34089d10c8a55301b62f96aa597d8f1

> Potential NPE in ModelDimensionDesc#init()
> ------------------------------------------
>
>                 Key: KYLIN-2268
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2268
>             Project: Kylin
>          Issue Type: Bug
>          Components: Metadata
>            Reporter: Ted Yu
>            Assignee: Billy Liu
>            Priority: Minor
>              Labels: newbie
>             Fix For: v2.0.0
>
>
> {code}
>         if (columns != null) {
>             StringUtil.toUpperCaseArray(columns, columns);
>         }
>         if (model != null) {
>             table = model.findTable(table).getAlias();
>             for (int i = 0; i < columns.length; i++) {
> {code}
> In the second if block, columns is accessed without null check.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)