Skip to content
Snippets Groups Projects
Commit efcbd568 authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

XWIKI-19092: Null object can make the document rename fail

parent a87cb9d9
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,9 @@ private void renameLinks(XWikiDocument document, DocumentReference oldTarget, Do ...@@ -160,7 +160,9 @@ private void renameLinks(XWikiDocument document, DocumentReference oldTarget, Do
// XObjects properties // XObjects properties
for (List<BaseObject> xobjects : document.getXObjects().values()) { for (List<BaseObject> xobjects : document.getXObjects().values()) {
for (BaseObject xobject : xobjects) { for (BaseObject xobject : xobjects) {
modified |= renameLinks(xobject, document, oldTarget, newTarget, renderer, xcontext, relative); if (xobject != null) {
modified |= renameLinks(xobject, document, oldTarget, newTarget, renderer, xcontext, relative);
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment