diff options
-rw-r--r-- | R/pkg/R/backend.R | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/R/pkg/R/backend.R b/R/pkg/R/backend.R index 49162838b8..6c81492f8b 100644 --- a/R/pkg/R/backend.R +++ b/R/pkg/R/backend.R @@ -110,6 +110,9 @@ invokeJava <- function(isStatic, objId, methodName, ...) { # TODO: check the status code to output error information returnStatus <- readInt(conn) + if (length(returnStatus) == 0) { + stop("No status is returned. Java SparkR backend might have failed.") + } if (returnStatus != 0) { stop(readString(conn)) } |