You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Sandeep More (JIRA)" <ji...@apache.org> on 2018/11/21 18:40:00 UTC

[jira] [Created] (KNOX-1620) NPE in StringStatisticsImpl.merge()

Sandeep More created KNOX-1620:
----------------------------------

             Summary: NPE in StringStatisticsImpl.merge()
                 Key: KNOX-1620
                 URL: https://issues.apache.org/jira/browse/KNOX-1620
             Project: Apache Knox
          Issue Type: Bug
            Reporter: Sandeep More
            Assignee: Sandeep More


StringStatisticsImpl.merge() does not test the conditions safely which can cause NPE e.g.
{code:java}
java.lang.NullPointerException
    at org.apache.hadoop.io.Text.encode(Text.java:443)
    at org.apache.hadoop.io.Text.set(Text.java:198)
    at org.apache.hadoop.io.Text.<init>(Text.java:88)
    at org.apache.orc.impl.ColumnStatisticsImpl$StringStatisticsImpl.merge(ColumnStatisticsImpl.java:610)
    at org.apache.orc.impl.writer.StringBaseTreeWriter.createRowIndexEntry(StringBaseTreeWriter.java:218)
    at org.apache.orc.impl.writer.StructTreeWriter.createRowIndexEntry(StructTreeWriter.java:106)
    at org.apache.orc.impl.WriterImpl.createRowIndexEntry(WriterImpl.java:435)
    at org.apache.orc.impl.WriterImpl.flushStripe(WriterImpl.java:441)
    at org.apache.orc.impl.WriterImpl.close(WriterImpl.java:582){code}



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