diff --git a/interface/src/ui/overlays/Overlays.cpp b/interface/src/ui/overlays/Overlays.cpp index 8f9f54c591..b08b429ad0 100644 --- a/interface/src/ui/overlays/Overlays.cpp +++ b/interface/src/ui/overlays/Overlays.cpp @@ -220,7 +220,12 @@ unsigned int Overlays::cloneOverlay(unsigned int id) { } else if (_overlaysWorld.contains(id)) { thisOverlay = _overlaysWorld[id]; } - return addOverlay(thisOverlay->createClone()); + + if (thisOverlay) { + return addOverlay(thisOverlay->createClone()); + } + + return 0; // Not found } bool Overlays::editOverlay(unsigned int id, const QScriptValue& properties) {