Skip to content

TypeError: Unable to get property 'toLowerCase' of undefined or null reference #164

@tanzim

Description

@tanzim

Hi,

Trying to log in into one of our products built with react-stormpath (1.3.4) results in the following exception:

TypeError: Unable to get property 'toLowerCase' of undefined or null reference
  at value(~/react-stormpath/lib/index.js:812:0)
  at handler(~/react-stormpath/lib/index.js:10197:0)
  at handler(~/react-stormpath/lib/index.js:953:0)
  at func(~/react-stormpath/lib/index.js:898:0)
  at a(~/react/lib/ReactChildren.js:51:0)
  at subtreeCount(~/react/lib/traverseAllChildren.js:81:0)
  at o(~/react/lib/traverseAllChildren.js:93:0)
  at traverseAllChildren(~/react/lib/traverseAllChildren.js:168:0)
  at _react2(~/react/lib/ReactChildren.js:71:0)
  at _this(~/react-stormpath/lib/index.js:897:0)
  at func(~/react-stormpath/lib/index.js:901:0)
  at a(~/react/lib/ReactChildren.js:51:0)
  at o(~/react/lib/traverseAllChildren.js:81:0)
  at traverseAllChildren(~/react/lib/traverseAllChildren.js:168:0)
  at _react2(~/react/lib/ReactChildren.js:71:0)
  at _this(~/react-stormpath/lib/index.js:897:0)
  at func(~/react-stormpath/lib/index.js:901:0)
  at a(~/react/lib/ReactChildren.js:51:0)
  at o(~/react/lib/traverseAllChildren.js:81:0)
  at traverseAllChildren(~/react/lib/traverseAllChildren.js:168:0)
  at _react2(~/react/lib/ReactChildren.js:71:0)
  at this(~/react-stormpath/lib/index.js:897:0)
  at fieldMap(~/react-stormpath/lib/index.js:948:0)
  at value(~/react-stormpath/lib/index.js:1031:0)
  at value(~/react-stormpath/lib/index.js:10247:0)
  at renderedElement(~/react-dom/lib/ReactCompositeComponent.js:811:0)
  at renderedElement(~/react-dom/lib/ReactCompositeComponent.js:822:0)
  at w.performInitialMount(~/react-dom/lib/ReactCompositeComponent.js:362:0)
  at w.mountComponent(~/react-dom/lib/ReactCompositeComponent.js:273:0)
  at mountImage(~/react-dom/lib/ReactReconciler.js:46:0)
  at Mixin.mountChildren(~/react-dom/lib/ReactMultiChild.js:238:0)
  at this(~/react-dom/lib/ReactDOMComponent.js:692:0)
  at h.Mixin.mountComponent(~/react-dom/lib/ReactDOMComponent.js:516:0)
  at mountComponent(~/react-dom/lib/ReactReconciler.js:46:0)
  at w.performInitialMount(~/react-dom/lib/ReactCompositeComponent.js:371:0)
  at w.mountComponent(~/react-dom/lib/ReactCompositeComponent.js:273:0)
  at mountComponent(~/react-dom/lib/ReactReconciler.js:46:0)
  at w.performInitialMount(~/react-dom/lib/ReactCompositeComponent.js:371:0)
  at w.mountComponent(~/react-dom/lib/ReactCompositeComponent.js:273:0)
  at mountComponent(~/react-dom/lib/ReactReconciler.js:46:0)
  at w.performInitialMount(~/react-dom/lib/ReactCompositeComponent.js:371:0)
  at w.mountComponent(~/react-dom/lib/ReactCompositeComponent.js:273:0)
  at mountComponent(~/react-dom/lib/ReactReconciler.js:46:0)
  at w.performInitialMount(~/react-dom/lib/ReactCompositeComponent.js:371:0)
  at w.mountComponent(~/react-dom/lib/ReactCompositeComponent.js:273:0)
  at mountImage(~/react-dom/lib/ReactReconciler.js:46:0)
  at Mixin.mountChildren(~/react-dom/lib/ReactMultiChild.js:238:0)
  at this(~/react-dom/lib/ReactDOMComponent.js:692:0)
  at h.Mixin.mountComponent(~/react-dom/lib/ReactDOMComponent.js:516:0)
  at mountComponent(~/react-dom/lib/ReactReconciler.js:46:0)

The call stack points to this

This was noticed in IE 11 (11.713.10586.0)

Sadly, we don't have access to a box with IE to test things out right now, so that's all the information we can give you which was gathered from our crash reporter. I'll update the issue when I get more context.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions