You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "zuohl (via GitHub)" <gi...@apache.org> on 2023/06/18 14:57:25 UTC

[GitHub] [shardingsphere] zuohl commented on a diff in pull request #26419: fix proxy java.lang.NullPointerException

zuohl commented on code in PR #26419:
URL: https://github.com/apache/shardingsphere/pull/26419#discussion_r1233321193


##########
proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/ProxyBackendHandlerFactory.java:
##########
@@ -156,6 +156,9 @@ public static ProxyBackendHandler newInstance(final DatabaseType databaseType, f
         String databaseName = sqlStatementContext.getTablesContext().getDatabaseName().isPresent()
                 ? sqlStatementContext.getTablesContext().getDatabaseName().get()
                 : connectionSession.getDatabaseName();
+        if (databaseName == null) {

Review Comment:
   ok



-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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