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

Unable to get property 'split' of undefined or null reference #19

Open
ertrzyiks opened this issue Jul 7, 2020 · 0 comments
Open

Unable to get property 'split' of undefined or null reference #19

ertrzyiks opened this issue Jul 7, 2020 · 0 comments

Comments

@ertrzyiks
Copy link

ertrzyiks commented Jul 7, 2020

Hi, our error monitoring tool captured the error like in the title by https://cdn.segment.com/analytics.js/v1/KEY/analytics.min.js

Details

Unable to get property 'split' of undefined or null reference

After checking out the stack trace I mapped it to that exact fragment:

for (var i = 0; i < storage.length; i++) {
var k = storage.key(i);
var parts = k.split('.');

Looks like some storage reports length > 0, but .key(0) returns null or undefined.

Occurences

We had around 10 reports during last 2 months, so the issue is marginal

User information:

  • Edge Version:18.18362
  • Windows 10

Actions

The easiest solution would be to add a guard to prevent splitting non-string values, but it would not address the underlying error that the storage implementation may be glitched.

Please let me know if I can help to fix it.

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

1 participant