From 91231b122e31ecfe83b4773a7f278d47f13ccdc9 Mon Sep 17 00:00:00 2001 From: Jeremy Bullock Date: Dec 05 2017 16:20:01 +0000 Subject: Merge pull request #1652 from shun-iwasawa/fix_crash_on_changing_scene Fix Crash on Closing Scene with Floating Selection Remained --- diff --git a/toonz/sources/tnztools/toolutils.cpp b/toonz/sources/tnztools/toolutils.cpp index f77ed0d..539b9ba 100644 --- a/toonz/sources/tnztools/toolutils.cpp +++ b/toonz/sources/tnztools/toolutils.cpp @@ -101,6 +101,7 @@ void ToolUtils::updateSaveBox(const TXshSimpleLevelP &sl, const TFrameId &fid) { TImageP img = sl->getFrame(fid, true); // The image will be modified (it // should already have been, though) + if (!img) return; // Observe that the returned image will forcedly have subsampling 1 ::updateSaveBox(img);