diff --git a/examples/with-react-i18next/i18n.js b/examples/with-react-i18next/i18n.js
index <HASH>..<HASH> 100644
--- a/examples/with-react-i18next/i18n.js
+++ b/examples/with-react-i18next/i18n.js
@@ -45,7 +45,7 @@ i18n.getInitialProps = (req, namespaces) => {
   req.i18n.languages.forEach((l) => {
     initialI18nStore[l] = {}
     namespaces.forEach((ns) => {
-      initialI18nStore[l][ns] = req.i18n.services.resourceStore.data[l][ns] || {}
+      initialI18nStore[l][ns] = (req.i18n.services.resourceStore.data[l] || {})[ns] || {}
     })
   })
Fix null pointer exception in with-react-<I>next (#<I>)

The example does not crash if a user chooses a non-existing language (e.g. goes to localhost:<I>/?lng=ru)