Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
* fix issue where getPath() would return "sdb-name/null" instead of "…
Browse files Browse the repository at this point in the history
…sdb-name/" (#167)
  • Loading branch information
mayitbeegh authored Jun 26, 2018
1 parent cb05a24 commit ec860c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
# limitations under the License.
#

version=3.17.0
version=3.18.0
groupId=com.nike.cerberus
artifactId=cms
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import com.nike.cerberus.security.CerberusPrincipal;

import java.util.Optional;

public class SecureDataRequestInfo {
private String category;
private String sdbSlug;
Expand Down Expand Up @@ -68,6 +70,6 @@ public SecureDataRequestInfo setPrincipal(CerberusPrincipal principal) {
}

public String getPath() {
return String.format("%s/%s", sdbSlug, subPath);
return String.format("%s/%s", sdbSlug, Optional.ofNullable(subPath).orElse(""));
}
}

0 comments on commit ec860c8

Please sign in to comment.