summaryrefslogtreecommitdiffstats
path: root/src/uri-references.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri-references.cpp')
-rw-r--r--src/uri-references.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uri-references.cpp b/src/uri-references.cpp
index 1684c6ade..f2df55213 100644
--- a/src/uri-references.cpp
+++ b/src/uri-references.cpp
@@ -61,7 +61,10 @@ void URIReference::attach(const URI &uri) throw(BadURIException)
if(path && document != NULL) {
document = document->createChildDoc(path);
}
- g_return_if_fail(document != NULL);
+ if(!document) {
+ g_warning("Can't get document for referenced URI: %s", uri.toString());
+ return;
+ }
gchar const *fragment = uri.getFragment();
if ( !uri.isRelative() || uri.getQuery() || !fragment ) {