You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2021/12/24 09:36:32 UTC

[GitHub] [incubator-linkis] peacewong opened a new issue #1235: [BUG]DefaultGatewayRouter init NPE

peacewong opened a new issue #1235:
URL: https://github.com/apache/incubator-linkis/issues/1235


   **Describe the bug**
   DefaultGatewayRouter has the possibility of reporting a NPE
   ```
   [org.springframework.cloud.gateway.filter.GlobalFilter]:  Factory method 'authorizationFilter' threw exception; nested exception is java.lang.NullPointerException
   ```
   ![image](https://user-images.githubusercontent.com/11496700/147340486-179140cf-a37f-4faa-aac3-4a3c8cef1a12.png)
   
   
   
   **Expected behavior**
   It is recommended to make a null judgment
   ```
   class DefaultGatewayRouter(var gatewayRouters: Array[GatewayRouter]) extends AbstractGatewayRouter{
   
     gatewayRouters = gatewayRouters.sortWith((left, right) => {
       left.order() < right.order()
     })
   ```


-- 
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: dev-unsubscribe@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org


[GitHub] [incubator-linkis] dongjycode commented on issue #1235: [BUG]DefaultGatewayRouter init NPE

Posted by GitBox <gi...@apache.org>.
dongjycode commented on issue #1235:
URL: https://github.com/apache/incubator-linkis/issues/1235#issuecomment-1001577635


   本人已解决,请参考[https://github.com/apache/incubator-linkis/issues/1086](url)


-- 
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: dev-unsubscribe@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org