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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to