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

Error when ip in service is null #120

Open
ghost opened this issue Aug 18, 2022 · 0 comments
Open

Error when ip in service is null #120

ghost opened this issue Aug 18, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 18, 2022

ref. https://github.com/homenoc/dsbd-web-admin/blob/develop/src/pages/Add/ConnectionAdd.tsx#L248

I am a HomeNOC user.
When I try to add my connection information, I get the following error and cannot proceed with the application.
From what I can see, it is Forced Unwrapping, so if the ip is null, an exception will be thrown.
Therefore, I think it would be better to make the error occur when the ip is null.

trace service
ConnectionAdd.tsx:290 Uncaught TypeError: Cannot read properties of null (reading 'filter')
    at hA (ConnectionAdd.tsx:290:118)
    at la (react-dom.production.min.js:157:137)
    at Va (react-dom.production.min.js:180:154)
    at $l (react-dom.production.min.js:269:343)
    at Ts (react-dom.production.min.js:250:347)
    at Zs (react-dom.production.min.js:250:278)
    at Es (react-dom.production.min.js:250:138)
    at bs (react-dom.production.min.js:243:163)
    at react-dom.production.min.js:123:115
    at t.unstable_runWithPriority (scheduler.production.min.js:18:343)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants