mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
prevent NPE
This commit is contained in:
1 parent
0ed6fdd925
commit
260a954d77
1 file changed
+2
-2
@@ -605,14 +605,14 @@ public class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,MavenMod
|
||||
* @since 1.481
|
||||
*/
|
||||
public SettingsProvider getSettings() {
|
||||
return settings;
|
||||
return settings != null ? settings : new DefaultSettingsProvider();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.481
|
||||
*/
|
||||
public GlobalSettingsProvider getGlobalSettings() {
|
||||
return globalSettings;
|
||||
return globalSettings != null ? globalSettings : new DefaultGlobalSettingsProvider();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user