diff options
Diffstat (limited to 'src/shared/ResourceImpl.cpp')
-rw-r--r-- | src/shared/ResourceImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp index 949a8b36..625e8c17 100644 --- a/src/shared/ResourceImpl.cpp +++ b/src/shared/ResourceImpl.cpp @@ -63,10 +63,10 @@ ResourceImpl::set_property(const Raul::URI& uri, const Raul::Atom& value) bool -ResourceImpl::has_property(const Raul::URI& uri, const Raul::Atom& value) +ResourceImpl::has_property(const Raul::URI& uri, const Raul::Atom& value) const { Properties::const_iterator i = _properties.find(uri); - for (; i->first == uri; ++i) { + for (; (i != _properties.end()) && (i->first == uri); ++i) { if (i->second == value) { return true; } |