Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]DefaultGatewayRouter init NPE #1235

Closed
Tracked by #1161
peacewong opened this issue Dec 24, 2021 · 2 comments
Closed
Tracked by #1161

[BUG]DefaultGatewayRouter init NPE #1235

peacewong opened this issue Dec 24, 2021 · 2 comments
Labels
bug Something isn't working component=SpringCloudServices/Gateway The Gateway component of SpringCloudServices

Comments

@peacewong
Copy link
Contributor

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

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()
  })
@peacewong peacewong added bug Something isn't working component=SpringCloudServices/Gateway The Gateway component of SpringCloudServices labels Dec 24, 2021
@joy12825
Copy link

joy12825 commented Dec 27, 2021

本人已解决,请参考 #1086

@peacewong
Copy link
Contributor Author

本人已解决,请参考 #1086

Thank you, but NPE still needs to be checked

dingsheng339 pushed a commit to dingsheng339/incubator-linkis that referenced this issue Oct 11, 2022
dingsheng339 added a commit to dingsheng339/incubator-linkis that referenced this issue Oct 11, 2022
dingsheng339 added a commit to dingsheng339/incubator-linkis that referenced this issue Oct 11, 2022
peacewong pushed a commit that referenced this issue Oct 11, 2022
* fix: DefaultGatewayRouter init NPE (#1235)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component=SpringCloudServices/Gateway The Gateway component of SpringCloudServices
Projects
None yet
Development

No branches or pull requests

2 participants