Skip to content

Commit

Permalink
Fixing null pointer problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed May 14, 2018
1 parent ae45ea9 commit c3e2307
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@ This started off as a fork from [node-gitlab](https://github.com/node-gitlab/nod

## Changelog

[3.3.4](https://github.com/jdalrymple/node-gitlab/tags/3.3.4) (2018-5-14)
------------------
- Fixing #85

[3.3.3](https://github.com/jdalrymple/node-gitlab/tags/3.3.3) (2018-5-13)
------------------
- Fixing #84
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gitlab",
"version": "3.3.3",
"version": "3.3.4",
"description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.",
"main": "dist/latest/index.js",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/RequestHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function getPaginated(service, endpoint, options = {}) {
});

const response = await service.requester.get(requestOptions);
const links = LinkParser(response.headers.link);
const links = LinkParser(response.headers.link) || {};
const page = response.headers['x-page'];
const underMaxPageLimit = options.maxPages ? page < options.maxPages : true;

Expand Down

0 comments on commit c3e2307

Please sign in to comment.