Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
efcbd568
Commit
efcbd568
authored
3 years ago
by
Thomas Mortagne
Browse files
Options
Downloads
Patches
Plain Diff
XWIKI-19092: Null object can make the document rename fail
parent
a87cb9d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/DefaultLinkRefactoring.java
+3
-1
3 additions, 1 deletion
...rg/xwiki/refactoring/internal/DefaultLinkRefactoring.java
with
3 additions
and
1 deletion
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/DefaultLinkRefactoring.java
+
3
−
1
View file @
efcbd568
...
@@ -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
);
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Git Mirror User
@gitmirror
mentioned in commit
f1699abf
·
3 years ago
mentioned in commit
f1699abf
mentioned in commit f1699abfda5a62dd9bb3e9ff04434b85869f4ac2
Toggle commit list
Git Mirror User
@gitmirror
mentioned in commit
e46f1b7e
·
3 years ago
mentioned in commit
e46f1b7e
mentioned in commit e46f1b7e915bbe091b8a67bcb332408e69d882aa
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment