You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/11/17 22:55:58 UTC
[jira] [Created] (KYLIN-2207) Ineffective null check in
ExtendCubeToHybridCLI#createFromCube()
Ted Yu created KYLIN-2207:
-----------------------------
Summary: Ineffective null check in ExtendCubeToHybridCLI#createFromCube()
Key: KYLIN-2207
URL: https://issues.apache.org/jira/browse/KYLIN-2207
Project: Kylin
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
{code}
if (partitionDateStr != null && partitionDate != currentSeg.getDateRangeEnd()) {
logger.error("PartitionDate must be end date of one segment.");
return;
}
if (currentSeg != null && partitionDateStr == null)
{code}
The null check in the second if statement is ineffective - currentSeg has been de-referenced already.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)