You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Davor Bonaci (JIRA)" <ji...@apache.org> on 2017/03/20 22:39:41 UTC
[jira] [Assigned] (BEAM-1568) Ineffective null check in
IsmFormat#structuralValue
[ https://issues.apache.org/jira/browse/BEAM-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davor Bonaci reassigned BEAM-1568:
----------------------------------
Assignee: Ted Yu (was: Davor Bonaci)
> Ineffective null check in IsmFormat#structuralValue
> ---------------------------------------------------
>
> Key: BEAM-1568
> URL: https://issues.apache.org/jira/browse/BEAM-1568
> Project: Beam
> Issue Type: Bug
> Components: runner-dataflow
> Reporter: Ted Yu
> Assignee: Ted Yu
> Priority: Minor
> Fix For: First stable release
>
>
> {code}
> public Object structuralValue(IsmRecord<V> record) throws Exception {
> checkState(record.getKeyComponents().size() == keyComponentCoders.size(),
> "Expected the number of key component coders %s "
> + "to match the number of key components %s.",
> keyComponentCoders.size(), record.getKeyComponents());
> if (record != null && consistentWithEquals()) {
> {code}
> record is de-referenced before the null check.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)