phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3413) Ineffective null check in LiteralExpression#newConstant()
Date Tue, 07 May 2019 04:42:00 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-3413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16834376#comment-16834376
] 

Hudson commented on PHOENIX-3413:
---------------------------------

FAILURE: Integrated in Jenkins build Phoenix-4.x-HBase-1.3 #395 (See [https://builds.apache.org/job/Phoenix-4.x-HBase-1.3/395/])
PHOENIX-3413 Ineffective null check in LiteralExpression#newConstant() (tdsilva: rev 613f32e1991b6456451f6cfd3f618ec5f1b0bbb9)
* (edit) phoenix-core/src/main/java/org/apache/phoenix/expression/LiteralExpression.java


> Ineffective null check in LiteralExpression#newConstant()
> ---------------------------------------------------------
>
>                 Key: PHOENIX-3413
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3413
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.9.1
>            Reporter: Ted Yu
>            Assignee: Kevin Liew
>            Priority: Minor
>             Fix For: 4.15.0, 5.1.0, 4.14.2
>
>         Attachments: PHOENIX-3413.2.patch, PHOENIX-3413.3.patch, PHOENIX-3413.patch
>
>
> {code}
>         if (maxLength == null) {
>             maxLength = type == null || !type.isFixedWidth() ? null : type.getMaxLength(value);
>         }
> {code}
> The null check for type is ineffective - type is de-referenced in various places prior
to the above check.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message