enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
201 stars 34 forks source link

Exception in version history panel #7063

Closed vbradnitski closed 5 years ago

vbradnitski commented 5 years ago

@sgauruseu commented on Thu Apr 04 2019

  1. Install SuperHero
  2. Open Filter Panel and check Post (Comment, Landing Page)
  3. Select any post-content and try to open Versions Widget

image

BUG: NullPointerException in server.log and 500 error in console

java.lang.NullPointerException: null at com.enonic.xp.core.impl.content.ContentVersionFactory.doCreateContentVersion(ContentVersionFactory.java:53) at com.enonic.xp.core.impl.content.ContentVersionFactory.create(ContentVersionFactory.java:43) at com.enonic.xp.core.impl.content.ContentVersionFactory.create(ContentVersionFactory.java:33) at com.enonic.xp.core.impl.content.FindContentVersionsCommand.doGetContentVersions(FindContentVersionsCommand.java:60) at com.enonic.xp.core.impl.content.FindContentVersionsCommand.execute(FindContentVersionsCommand.java:37) at com.enonic.xp.core.impl.content.ContentServiceImpl.getVersions(ContentServiceImpl.java:897) at com.enonic.xp.admin.impl.rest.resource.content.ContentResource.getContentVersionsForView(ContentResource.java:1234)

GlennRicaud commented 5 years ago

That should never happen. There was an update of the import data and broke 23 nodes a year ago: https://github.com/enonic/app-superhero-blog/commit/0c98e4b53c70fce86150a43d289c2862015992c9 Closing this issue. Please fix the 23 nodes in app-superhero-blog