mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-30 21:15:23 +00:00
NPE diagnosis from ProjectTest.testCheckout.
java.lang.NullPointerException: null at hudson.model.AbstractBuild.setWorkspace(AbstractBuild.java:296) at hudson.model.ProjectTest.testCheckout(ProjectTest.java:423)
This commit is contained in:
1 parent
cb6e568815
commit
52c28ae38d
5 files changed
+24
-19
No files matched your search
@@ -111,6 +111,7 @@ import java.util.regex.Pattern;
|
||||
|
||||
import static hudson.FilePath.TarCompression.*;
|
||||
import static hudson.Util.*;
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
/**
|
||||
* {@link File} like object with remoting support.
|
||||
@@ -1161,7 +1162,7 @@ public final class FilePath implements Serializable {
|
||||
* @param relOrAbsolute a relative or absolute path
|
||||
* @return a file on the same channel
|
||||
*/
|
||||
public FilePath child(String relOrAbsolute) {
|
||||
public @Nonnull FilePath child(String relOrAbsolute) {
|
||||
return new FilePath(this,relOrAbsolute);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user