flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yun Tang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-12043) Null value check in array serializers classes
Date Fri, 29 Mar 2019 07:24:00 GMT

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

Yun Tang commented on FLINK-12043:
----------------------------------

hi [~quan], what's your purpose to report this Jira:
 * Complain about throwing unreadable NPE without any explicit hint. This [https://github.com/apache/flink/pull/8075]
could help resolve it.
 * Or want to know why that NPE could happen. If so, please give enough exception stack trace.

 

> Null value check in array serializers classes
> ---------------------------------------------
>
>                 Key: FLINK-12043
>                 URL: https://issues.apache.org/jira/browse/FLINK-12043
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Type Serialization System
>    Affects Versions: 1.7.2
>            Reporter: Quan Shi
>            Assignee: aloyszhang
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Null pointer exception when get length of "_from"_ if _"from"_ is null in copy() method:
>  
> Involved classes:
> {code:java}
> // code placeholder
> public String[] copy(String[] from) {
>    String[] target = new String[from.length];
>    System.arraycopy(from, 0, target, 0, from.length);
>    return target;
> }
> {code}
> Involved serializer classes in package "org.apache.flink.api.common.typeutils.base.array" 
>  



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

Mime
View raw message