Skip to content
Snippets Groups Projects
Commit 5658dee6 authored by tmortagne's avatar tmortagne
Browse files

XWIKI-7670: Make class references always local

Fix potential classcast exception
parent 109207e1
No related branches found
No related tags found
No related merge requests found
......@@ -192,7 +192,7 @@ public void setXClassReference(EntityReference xClassReference)
EntityReference ref = xClassReference;
if (ref != null) {
WikiReference wiki = (WikiReference) xClassReference.extractReference(EntityType.WIKI);
EntityReference wiki = xClassReference.extractReference(EntityType.WIKI);
if (wiki != null) {
ref = xClassReference.removeParent(wiki);
......
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