Skip to content

Commit

Permalink
Merge pull request #430 from madoke/master
Browse files Browse the repository at this point in the history
fix: prevent possible NPE
  • Loading branch information
elandau authored Nov 11, 2017
2 parents f869814 + c688b52 commit 891d471
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ private void init() {
}

private void cacheValues(Node configNode) {
if(configNode == null || configNode.getNodes() == null) {
return;
}

for (Node valueNode : configNode.getNodes()) {
final String etcdKey = valueNode.key();
final String sourceKey = Iterables.getLast(keySplitter.split(etcdKey));
Expand Down

0 comments on commit 891d471

Please sign in to comment.