Skip to content

Commit

Permalink
handle when register is null, don't throw NPE, default to false
Browse files Browse the repository at this point in the history
Fixes #2909
  • Loading branch information
lukeis committed Oct 12, 2016
1 parent 1d1a092 commit 3716fc5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ public void startRegistrationProcess() {
LOG.fine("Using the json request : " + registrationRequest.toJson());

Boolean register = registrationRequest.getConfiguration().register;
if (register == null) {
register = false;
}

if (!register) {
LOG.info("No registration sent ( register = false )");
Expand Down

1 comment on commit 3716fc5

@mach6
Copy link
Member

@mach6 mach6 commented on 3716fc5 Oct 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lukeis

Please sign in to comment.