-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Bugfix: "Cannot read property 'firstElementChild' of null" (WFS) #3118
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
Bugfix: "Cannot read property 'firstElementChild' of null" (WFS) #3118
Conversation
hey @brianreavis thanks for this, can you please add a testcase and format the code according to the guidelines, e.g. always
|
Too bad this is not enforced by the linter. Maybe there is an option we can pass to jshint. |
@bartvde Yeah, I can add in the brackets. The code block is intentionally duplicated: // original line:
node = node.firstElementChild.firstElementChild;
// expanded form:
node = node.firstElementChild;
node = node.firstElementChild; |
ah okay I'd use |
or protect the for loop with:
|
thanks @brianreavis last step would be to clean up the git history with a git rebase, are you familiar with that? |
e9da208
to
37dac8e
Compare
…rojectionFromNode. Occurs when a FeatureCollection is empty. Code style changes @bartvde Added test case for openlayers#3118. Attempt to make jshint happy. Fixed tab character. Another code style change (jshint)....
Done. Does OL have any plans on relaxing the style? The strictness (line length in particular) is making code readability and contribution a mess. |
@brianreavis have you submitted a CLA already? https://github.com/openlayers/ol3/blob/master/CONTRIBUTING.md#contributor-license-agreement |
Done... |
thanks for your contribution and patience @brianreavis |
Bugfix: "Cannot read property 'firstElementChild' of null" (WFS)
I'd say that we're pretty happy with what we use :-) |
Occurs when the WFS FeatureCollection is empty.