Skip to content

Commit e65efc1

Browse files
committed
Merge pull request #65 from mkienenb/GetHostedProfilePageController-HostedProfileSettings-is-optional-not-required
GetHostedProfilePageController should not require optional hostedProfileSettings parameter. Thanks for the PR Mike.
2 parents 73d964e + febc247 commit e65efc1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/authorize/api/controller/GetHostedProfilePageController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected void validateRequest() {
1717

1818
//validate required fields
1919
if ( null == request.getCustomerProfileId()) throw new NullPointerException("CustomerProfileIdcannot be null");
20-
if ( null == request.getHostedProfileSettings()) throw new NullPointerException("HostedProfileSettings cannot be null");
20+
// HostedProfileSettings is not a required field
2121

2222
//validate not-required fields
2323
//creditCardOne.setCardCode("");

0 commit comments

Comments
 (0)