Ted Yu created SYSTEMML-1739:
--------------------------------
Summary: Ineffective null check in
MLContextConversionUtil#binaryBlocksToFrameObject()
Key: SYSTEMML-1739
URL: https://issues.apache.org/jira/browse/SYSTEMML-1739
Project: SystemML
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
{code}
MatrixCharacteristics mc = (frameMetadata != null) ?
frameMetadata.asMatrixCharacteristics()
: new MatrixCharacteristics();
FrameObject frameObject = new
FrameObject(OptimizerUtils.getUniqueTempFileName(),
new MatrixFormatMetaData(mc, OutputInfo.BinaryBlockOutputInfo,
InputInfo.BinaryBlockInputInfo),
frameMetadata.getFrameSchema().getSchema().toArray(new ValueType[0]));
{code}
null check is performed on frameMetadata.
However, frameMetadata is dereferenced later without check for getFrameSchema().
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)