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 NPE during new site startup #677

Merged
merged 1 commit into from
Jun 2, 2022
Merged

Conversation

kac-
Copy link
Contributor

@kac- kac- commented Jun 1, 2022

Site from scratch in dev mode resulted in NPE on home.tsx that prevented anything to show up.

TypeError: Cannot read properties of null (reading 'site')
    at new Home (webpack://lemmy-ui/./src/shared/components/home/home.tsx?:73:188)
    at renderVNodeToString (/tmp/lemmy-ui/node_modules/inferno-server/dist/index.cjs.js:170:28)
    at renderVNodeToString (/tmp/lemmy-ui/node_modules/inferno-server/dist/index.cjs.js:221:20)
    at renderVNodeToString (/tmp/lemmy-ui/node_modules/inferno-server/dist/index.cjs.js:221:20)
    at renderVNodeToString (/tmp/lemmy-ui/node_modules/inferno-server/dist/index.cjs.js:303:35)
    at renderVNodeToString (/tmp/lemmy-ui/node_modules/inferno-server/dist/index.cjs.js:307:39)
    at renderVNodeToString (/tmp/lemmy-ui/node_modules/inferno-server/dist/index.cjs.js:221:20)
    at renderVNodeToString (/tmp/lemmy-ui/node_modules/inferno-server/dist/index.cjs.js:337:37)
    at renderVNodeToString (/tmp/lemmy-ui/node_modules/inferno-server/dist/index.cjs.js:221:20)
    at renderVNodeToString (/tmp/lemmy-ui/node_modules/inferno-server/dist/index.cjs.js:221:20)

@kac- kac- requested a review from dessalines as a code owner June 1, 2022 07:13
@dessalines dessalines merged commit d41e19f into LemmyNet:main Jun 2, 2022
dessalines pushed a commit that referenced this pull request Jul 18, 2022
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

Successfully merging this pull request may close these issues.

2 participants