Skip to content

Fix crash when no global context is supplied, no handler context is supplied, and a layout template is being used#17

Merged
arb merged 1 commit intohapijs:masterfrom
Torsph:fix_missing_context_crash
Nov 13, 2014
Merged

Fix crash when no global context is supplied, no handler context is supplied, and a layout template is being used#17
arb merged 1 commit intohapijs:masterfrom
Torsph:fix_missing_context_crash

Conversation

@Torsph
Copy link
Copy Markdown
Contributor

@Torsph Torsph commented Nov 13, 2014

Fix crash when no global context is supplied, no handler context is supplied, and a layout template is being used. Couldn't find a decent way to add a test, but the coverage is still 100% :)

Fixes #16

@arb arb added this to the 1.2.2 milestone Nov 13, 2014
@arb arb added the bug Bug or defect label Nov 13, 2014
jagoda added a commit to jagoda/vision that referenced this pull request Nov 13, 2014
@arb
Copy link
Copy Markdown
Contributor

arb commented Nov 13, 2014

If you recreate the situation described in #16, that should give you a test right? You know the situation you need to create to make this happen.

The fact that coverage is still 100% means that both sides of context || {} are happening, you just need to create a test that forces it to happen.

@jagoda
Copy link
Copy Markdown
Contributor

jagoda commented Nov 13, 2014

@Torsph I have created a test case for your reference. Feel free to pull/modify it as you see fit.

@Torsph
Copy link
Copy Markdown
Contributor Author

Torsph commented Nov 13, 2014

@jagoda @arb Thanks. Will fix :)

…upplied, and a layout template is being used
@Torsph Torsph force-pushed the fix_missing_context_crash branch from 14c8395 to 008c66d Compare November 13, 2014 14:58
@Torsph
Copy link
Copy Markdown
Contributor Author

Torsph commented Nov 13, 2014

@jagoda I just made the test name a bit more specific.

@jagoda
Copy link
Copy Markdown
Contributor

jagoda commented Nov 13, 2014

@Torsph cool. Works for me.

arb added a commit that referenced this pull request Nov 13, 2014
Fix crash when no global context is supplied, no handler context is supplied, and a layout template is being used
@arb arb merged commit 8b46557 into hapijs:master Nov 13, 2014
@arb
Copy link
Copy Markdown
Contributor

arb commented Nov 13, 2014

Thanks @Torsph and @jagoda.

@lock
Copy link
Copy Markdown

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

404 gives error

3 participants