Issue #18541: simplified LoggerAdapter example.
Closes #18541: merged update from 3.3.
Fix potential NULL pointer dereferencing in ast module
CID 719690
Fix potential NULL pointer dereferencing in ast module
CID 719690