catch null pointer exception when no colourscheme is active