You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/09/13 03:53:33 UTC
[jira] [Created] (HIVE-8090) Potential null pointer reference in
WriterImpl#StreamFactory#createStream()
Ted Yu created HIVE-8090:
----------------------------
Summary: Potential null pointer reference in WriterImpl#StreamFactory#createStream()
Key: HIVE-8090
URL: https://issues.apache.org/jira/browse/HIVE-8090
Project: Hive
Issue Type: Bug
Reporter: Ted Yu
{code}
switch (kind) {
...
default:
modifiers = null;
break;
}
BufferedStream result = streams.get(name);
if (result == null) {
result = new BufferedStream(name.toString(), bufferSize,
codec == null ? codec : codec.modify(modifiers));
{code}
In case modifiers is null and codec is ZlibCodec, there would be NPE in ZlibCodec#modify(EnumSet<Modifier> modifiers) :
{code}
for (Modifier m : modifiers) {
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)