GetPictureScreenIfSet() is designed that NULL can be returned. Even though it should not happen in this particular case, better be prepared for that, instead of just segfault'ing. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>