You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/07/14 22:51:02 UTC
[jira] [Created] (SYSTEMML-1769) Potential null dereference in
PreparedScript#enableFunctionRecompile
Ted Yu created SYSTEMML-1769:
--------------------------------
Summary: 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
Priority: Minor
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)