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

Deron Eriksson resolved SYSTEMML-901.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: SystemML 0.11

Fixed by [PR238|https://github.com/apache/incubator-systemml/pull/238].

> Improve message if MLContext not available
> ------------------------------------------
>
>                 Key: SYSTEMML-901
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-901
>             Project: SystemML
>          Issue Type: Improvement
>          Components: APIs
>            Reporter: Deron Eriksson
>            Assignee: Deron Eriksson
>             Fix For: SystemML 0.11
>
>
> Currently, if an MLContext object hasn't been created with the SparkContext, 
> this can give rise to an error such as the following:
> {code}
> java.lang.NullPointerException
> at 
> org.apache.sysml.api.mlcontext.MLContextConversionUtil.determineDataFrameDimensionsIfNeeded(MLContextConversionUtil.java:610)
> {code}
> For instance, if the MLContext object hasn't been created yet but a user does 
> something such as trying to set inputs and outputs on a Script object, the 
> above error occurs.
> {code}
> val LinRegCg = LinRegCgDML.in("X", X).in("y", y).out("beta_out")
> {code}
> The error message should be more informative and tell the user how to fix the 
> issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to