Skip to content

NPT-799 fix for issue when the first query with root-Id gets panic#119

Open
vipinakavarpu wants to merge 1 commit intomainfrom
npt799
Open

NPT-799 fix for issue when the first query with root-Id gets panic#119
vipinakavarpu wants to merge 1 commit intomainfrom
npt799

Conversation

@vipinakavarpu
Copy link
Contributor

The initialization of nexus client was being performed in the getRootResolver and this lead to cache miss when user invokes the query for the first time. The object returned is nil in this scenario and no check was performed before try to access object's variable thus causing the panic. The fix is to disconnect the initialization of nexus client logic from root resolver func and create separate init method to invoke it at the start of the server. Also added check for nil for root object being returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants