Ok, that suggestion pointed me in the right direction - seems this one was me being stupid, rather than anything being wrong with the particular code I showed you.
Seems I'd managed to forget (somehow) to return the page description from the function which created it, thus it was trying to use a nothing description for the page. After reading your last comment I looked back and saw my mistake (I had tested the object found a page which existed within the function it was written in, but hadn't checked it outside)
Thanks for your help in pointing me at my own idiocy
Seems I'd managed to forget (somehow) to return the page description from the function which created it, thus it was trying to use a nothing description for the page. After reading your last comment I looked back and saw my mistake (I had tested the object found a page which existed within the function it was written in, but hadn't checked it outside)
Thanks for your help in pointing me at my own idiocy