Skip to content

Commit

Permalink
修复部分bug
Browse files Browse the repository at this point in the history
  • Loading branch information
saleson committed Jan 10, 2018
1 parent c73d4d9 commit 7022fce
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ public void openForWork() {
@Override
public List<GrayService> listGrayService() {
if (grayServiceMap == null) {
updateGrayServices(super.listGrayService());
List<GrayService> grayServices = super.listGrayService();
if (grayServices == null) {
return null;

}
updateGrayServices(grayServices);
}
return new ArrayList<>(grayServiceMap.values());
}
Expand Down Expand Up @@ -64,7 +69,7 @@ protected void serviceShutdown() {

@Override
public void updateGrayServices(Collection<GrayService> grayServices) {
if(grayServices==null){
if (grayServices == null) {
return;
}
Map<String, GrayService> grayMap = new HashMap<>();
Expand Down

0 comments on commit 7022fce

Please sign in to comment.