File tree Expand file tree Collapse file tree
src/main/java/io/jenkins/plugins/artifact_manager_jclouds/s3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858import com .google .common .base .Supplier ;
5959
6060import hudson .Extension ;
61+ import hudson .Util ;
6162import io .jenkins .plugins .artifact_manager_jclouds .BlobStoreProvider ;
6263import io .jenkins .plugins .artifact_manager_jclouds .BlobStoreProviderDescriptor ;
6364import io .jenkins .plugins .aws .global_configuration .CredentialsAwsGlobalConfiguration ;
@@ -91,7 +92,7 @@ public S3BlobStore() {
9192
9293 @ Override
9394 public String getPrefix () {
94- return getConfiguration ().getPrefix ();
95+ return Util . fixNull ( getConfiguration ().getPrefix () );
9596 }
9697
9798 @ Override
Original file line number Diff line number Diff line change 3737import org .kohsuke .stapler .interceptor .RequirePOST ;
3838
3939import com .google .common .annotations .VisibleForTesting ;
40+ import edu .umd .cs .findbugs .annotations .CheckForNull ;
4041
4142import edu .umd .cs .findbugs .annotations .NonNull ;
4243import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
@@ -174,13 +175,14 @@ public void setContainer(String container) {
174175 save ();
175176 }
176177
178+ @ CheckForNull
177179 public String getPrefix () {
178180 return prefix ;
179181 }
180182
181183 @ DataBoundSetter
182184 public void setPrefix (String prefix ){
183- this .prefix = prefix ;
185+ this .prefix = Util . fixEmptyAndTrim ( prefix ) ;
184186 checkValue (doCheckPrefix (prefix ));
185187 save ();
186188 }
You can’t perform that action at this time.
0 commit comments