Fix null reference crash
Merge pull request #2262 from ke-yu/fix_default_booleanvalue

Fix null reference crash in preview window