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

closes #366 Control when cursor in logger is null #367

Conversation

abelsromero
Copy link
Member

Adds a null check to the cursor of logRecords.
In case the message does not have a cursor, it will print a message without it following Asciidoctor current format.

Example:
[info] asciidoctor: WARN: invalid reference: section-id

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 68.638% when pulling 266ba4e on abelsromero:fix/avoid_NullPointer_when_enabling_outputToConsole into 6f6aee9 on asciidoctor:master.

@mojavelinux
Copy link
Member

That's correct. Not all messages have a cursor because sometimes one isn't available.

@abelsromero abelsromero merged commit 53be22a into asciidoctor:master Sep 25, 2018
@abelsromero abelsromero deleted the fix/avoid_NullPointer_when_enabling_outputToConsole branch October 21, 2018 10:34
@abelsromero abelsromero added this to the 1.5.7.1 milestone Dec 30, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants