test for null canvas