TeslaCN commented on code in PR #19394:
URL: https://github.com/apache/shardingsphere/pull/19394#discussion_r926156730
##########
shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/main/java/org/apache/shardingsphere/encrypt/rewrite/token/generator/EncryptInsertValuesTokenGenerator.java:
##########
@@ -77,6 +77,9 @@ public InsertValuesToken generateSQLToken(final
InsertStatementContext insertSta
}
private Optional<SQLToken> findPreviousSQLToken(final Class<?> sqlToken) {
+ if (null == previousSQLTokens) {
Review Comment:
> a NPE when previousSQLTokens is null
previousSQLTokens is Collection, null value is not allowed for a Collection
in ShardingSphere's code style.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]