Skip to content

Commit

Permalink
fix null pointer exception while trying to open registration on an un…
Browse files Browse the repository at this point in the history
…configured node
  • Loading branch information
chenson42 committed Jan 2, 2013
1 parent fbdb1dc commit 011ec20
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -365,9 +365,7 @@ public synchronized String openRegistration(Node node) {

protected String openRegistration(Node node, String remoteHost, String remoteAddress) {
Node me = nodeService.findIdentity();
if (me != null
|| (parameterService.getExternalId().equals(node.getExternalId()) && parameterService
.getNodeGroupId().equals(node.getNodeGroupId()))) {
if (me != null) {
String nodeId = nodeService.getNodeIdCreator().generateNodeId(node, remoteHost, remoteAddress);
Node existingNode = nodeService.findNode(nodeId);
if (existingNode == null) {
Expand Down

0 comments on commit 011ec20

Please sign in to comment.