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

fix(nacos): add skipped nil check for "applications" upvalue #9960

Merged
merged 4 commits into from
Aug 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: add skipped nil check for "applications" upvalue
Signed-off-by: revolyssup <ashishjaitiwari15112000@gmail.com>
Revolyssup committed Aug 3, 2023
commit d6a9f0b8527b73fa5d6382ffce64b3678867df21
2 changes: 1 addition & 1 deletion apisix/discovery/nacos/init.lua
Original file line number Diff line number Diff line change
@@ -361,7 +361,7 @@ function _M.nodes(service_name, discovery_args)
waiting_time = waiting_time - step
end

if not applications[namespace_id] or not applications[namespace_id][group_name] then
if not applications or not applications[namespace_id] or not applications[namespace_id][group_name] then
return nil
end
return applications[namespace_id][group_name][service_name]