Skip to content

Commit

Permalink
fix: Log errors related to Documents - EXO-70478 (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrout committed Mar 26, 2024
1 parent 5e5a8aa commit 75bc620
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ public boolean execute(Context context) throws Exception {
if(node.canAddMixin("exo:modify")) {
node.addMixin("exo:modify");
}
String propertyName =((PropertyImpl) item).getInternalName().getName();
if (propertyName.equals("documentViews") || propertyName.equals("documentViewers")) {
return false;
if (item instanceof Property) {
String propertyName = ((PropertyImpl) item).getInternalName().getName();
if (propertyName.equals("documentViews") || propertyName.equals("documentViewers")) {
return false;
}
}
node.setProperty("exo:lastModifiedDate", new GregorianCalendar());
node.setProperty("exo:lastModifier",userName);
Expand Down

0 comments on commit 75bc620

Please sign in to comment.