[ https://issues.apache.org/jira/browse/SYSTEMML-1769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Boehm closed SYSTEMML-1769. ------------------------------------ Resolution: Fixed Assignee: Matthias Boehm Fix Version/s: SystemML 1.0 > Potential null dereference in PreparedScript#enableFunctionRecompile > -------------------------------------------------------------------- > > Key: SYSTEMML-1769 > URL: https://issues.apache.org/jira/browse/SYSTEMML-1769 > Project: SystemML > Issue Type: Bug > Reporter: Ted Yu > Assignee: Matthias Boehm > Priority: Minor > Fix For: SystemML 1.0 > > > Here is related code: > {code} > FunctionCallGraph fgraph = _prog.getProgramBlocks().isEmpty() ? null : > new > FunctionCallGraph(_prog.getProgramBlocks().get(0).getStatementBlock().getDMLProg()); > ... > if( !fgraph.isRecursiveFunction(fkey) ) { > {code} > The assignment indicates that fgraph may be null. > In the for loop, we should check fgraph against null before dereferencing. -- This message was sent by Atlassian JIRA (v6.4.14#64029)