fix crash for null pointer

This commit is contained in:
Andrew Meadows 2016-07-12 10:15:28 -07:00
parent 3e43859139
commit c106f4c3a0

View file

@ -106,7 +106,7 @@ public:
void setResource(GeometryResource::Pointer resource); void setResource(GeometryResource::Pointer resource);
const QUrl& getURL() const { return _resource->getURL(); } QUrl GeometryResourceWatcher::getURL() const { return (bool)_resource ? _resource->getURL() : QUrl(); }
private: private:
void startWatching(); void startWatching();