fix: catch null preferences#2123
Conversation
|
Thanks but I need an example reproducing it. |
|
Hm, I thought I found that I was doing something wrong but I constantly see the same issue: Unfortunately, I cannot really reproduce it but it seems to be related to Maybe you have an idea? I see this issue by the way when using hapi and pass invalid payloads (some keys not set) to the routes. |
|
Okay, I set |
|
@hueniverse sorry for spamming you but I could eventually create an example which reproduces the issue: It seems to be related to |
|
Thanks. Will look into this later today. |
|
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. |
I noticed that when using a
whenconstruction thepreferencesare null:https://github.com/hapijs/joi/blob/master/lib/base.js#L356