diff --git a/toonz/sources/toonz/iocommand.cpp b/toonz/sources/toonz/iocommand.cpp index 6b1389c..40d72ff 100644 --- a/toonz/sources/toonz/iocommand.cpp +++ b/toonz/sources/toonz/iocommand.cpp @@ -2997,7 +2997,7 @@ public: if (sl && sl->getPath().getType() == "pli") sl->save(palettePath, TFilePath(), true); - else if (sl->getType() & FULLCOLOR_TYPE) + else if (sl && sl->getType() & FULLCOLOR_TYPE) FullColorPalette::instance()->savePalette(scene); else StudioPalette::instance()->save(palettePath, palette);