Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

sticky: null-pointer exception #7316

Closed
Frank3K opened this issue Feb 27, 2016 · 0 comments
Closed

sticky: null-pointer exception #7316

Frank3K opened this issue Feb 27, 2016 · 0 comments

Comments

@Frank3K
Copy link
Contributor

Frank3K commented Feb 27, 2016

Commit 08bf4f9 introduced a null-pointer exception in sticky.js. The null-pointer is on line 194:

      while (current && current !== contentEl[0]) {
        item.top += current.offsetTop;
        item.left += current.offsetLeft;
        item.right += current.offsetParent.offsetWidth - current.offsetWidth - current.offsetLeft; //Compute offsetRight
        current = current.offsetParent;
      }

In the above loop, current.offsetParent can be null.

ThomasBurleson added a commit that referenced this issue Feb 27, 2016
fixes #7316.

# Conflicts:
#	src/components/sticky/sticky.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant