phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-2372) PhoenixResultSet.getDate(int, Calendar) causes NPE on a null value
Date Sat, 14 Nov 2015 20:53:10 GMT

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

Hudson commented on PHOENIX-2372:
---------------------------------

FAILURE: Integrated in Phoenix-master #959 (See [https://builds.apache.org/job/Phoenix-master/959/])
PHOENIX-2372 Ensure null values are returned immediatedly in (ndimiduk: rev 016b2b96ec4afdf296967d1f2b7a2bb67b94b58e)
* phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
* phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryMoreIT.java
* phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixResultSet.java


> PhoenixResultSet.getDate(int, Calendar) causes NPE on a null value
> ------------------------------------------------------------------
>
>                 Key: PHOENIX-2372
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2372
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.4.0, 4.5.0, 4.6.0
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>             Fix For: 4.7.0
>
>         Attachments: PHOENIX-2372.001.patch, PHOENIX-2372.002.patch, PHOENIX-2372.003.patch
>
>
> Ran a simple query through PQS:
> {code}
> select * from system.stats;
> {code}
> and got back a stack trace (trimmed for relevance)
> {noformat}
> java.lang.NullPointerException
>         at java.util.Calendar.setTime(Calendar.java:1770)
>         at org.apache.phoenix.jdbc.PhoenixResultSet.getDate(PhoenixResultSet.java:377)
>         at org.apache.calcite.avatica.jdbc.JdbcResultSet.getValue(JdbcResultSet.java:172)
>         at org.apache.calcite.avatica.jdbc.JdbcResultSet.frame(JdbcResultSet.java:142)
> {noformat}
> It looks like the {{getDate(int, Calendar)}} method on PhoenixResultSet doesn't check
the value before passing it into the calendar.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message