-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-20815] [SPARKR] NullPointerException in RPackageUtils#checkManifestForR #18040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Jenkins, ok to test |
|
Test build #77128 has finished for PR 18040 at commit
|
| } | ||
| mani | ||
| mani | ||
| } else null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think typically Spark style is to have the else statement in separate line enclosed with {} like
} else {
null
}
| val jarStream = new JarOutputStream(jarFileStream, manifest) | ||
| val jarStream = if (manifest != null) { | ||
| new JarOutputStream(jarFileStream, manifest) | ||
| } else new JarOutputStream(jarFileStream) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto here with else
|
@jrshust would you have a chance to address a few minor comments? |
|
@felixcheung yep sorry will address today! |
|
Test build #77195 has started for PR 18040 at commit |
|
hmm that's odd |
|
Yeah I'm a bit confused the last build was fine and this one just had style changes. What are the next steps here? Is that a red herring or was it actually aborted? |
|
Jenkins, retest this please |
|
it looks like build jobs are killed, let's try again |
|
Test build #77205 has finished for PR 18040 at commit
|
…festForR ## What changes were proposed in this pull request? - Add a null check to RPackageUtils#checkManifestForR so that jars w/o manifests don't NPE. ## How was this patch tested? - Unit tests and manual tests. Author: James Shuster <[email protected]> Closes #18040 from jrshust/feature/r-package-utils. (cherry picked from commit 4dbb63f) Signed-off-by: Felix Cheung <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
merged to master/2.2, thanks! |
…festForR ## What changes were proposed in this pull request? - Add a null check to RPackageUtils#checkManifestForR so that jars w/o manifests don't NPE. ## How was this patch tested? - Unit tests and manual tests. Author: James Shuster <[email protected]> Closes apache#18040 from jrshust/feature/r-package-utils.
What changes were proposed in this pull request?
How was this patch tested?