[ 
https://issues.apache.org/jira/browse/FLINK-13333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

TisonKun closed FLINK-13333.
----------------------------
    Resolution: Not A Problem

[~xintongsong] this issue would be addressed once FLINK-13714 merged since we 
don't have a {{program}} field ever.

> Potentially NPE of preview plan functionality
> ---------------------------------------------
>
>                 Key: FLINK-13333
>                 URL: https://issues.apache.org/jira/browse/FLINK-13333
>             Project: Flink
>          Issue Type: Bug
>          Components: Command Line Client
>    Affects Versions: 1.10.0
>            Reporter: TisonKun
>            Priority: Major
>
> {{PackagedProgram#getPreviewPlan}} contains code as below
> {code:java}
> if (isUsingProgramEntryPoint()) {
>     previewPlan = Optimizer.createPreOptimizedPlan(getPlan());
> } else if (isUsingInteractiveMode()) {
>     // ...
>     getPlan().getJobId();
>     // ....
> }
> {code}
>  
> when the latter {{#getPlan}} executed, it will finally execute 
> {{program.getPlan(options)}} where {{program}} equals null.
> To solve this problem, we can replace {{getPlan}} with {{env.getPlan}}. Where 
> {{env}} is an instance of {{PreviewPlanEnvironment}}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to