In the same file pointers have a positive check. IMHO hhis does not make sense. The value the pointer points to has to be checked. Same error in 3.6.4 and master.
Created attachment 7449 [details] patch
Comment on attachment 7449 [details] patch Obviously correct.
Re-assigning to Karolin for inclusion in 3.6.next.
Pushed to v3-6-test. Closing out bug report. Thanks!