You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/04/01 13:58:32 UTC

[GitHub] [shardingsphere] tristaZero edited a comment on pull request #9891: Fix issue : SHOW SHARDING RULE throw NullPointerException when keyGenerateStrategy and default strategy is not configured

tristaZero edited a comment on pull request #9891:
URL: https://github.com/apache/shardingsphere/pull/9891#issuecomment-811926759


   ```java
   private String generateKeyGenerateStrategy(final ShardingRuleConfiguration ruleConfig, final KeyGenerateStrategyConfiguration keyGenerateStrategy) {
           return null == ruleConfig ? "" : "column:" + keyGenerateStrategy.getColumn() + " " + (new Gson()).toJson(ruleConfig.getKeyGenerators().get(keyGenerateStrategy.getKeyGeneratorName()));
       }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org