checking null pointer to avoid exception when jsgol is selected