If no splash screen was shown then windowHandle() returns null and this leads to a segmentation fault.