nicolaayan / EpiserverCmsAudit

MIT License
9 stars 20 forks source link

Specific pages give NullReferenceException #6

Closed MadsGosvig closed 4 years ago

MadsGosvig commented 6 years ago

We have a few pages (3) which gives a NullReferenceException when viewing the PageTypeAudit. It is the following pages:

Our PageTree looks like this: image

And this is the error that we are getting: image

I just spend 1-2 minutes debugging - But it seems that this is the part of the code which throws the error: image

We are currently using version 1.2.0

nicolaayan commented 4 years ago

Hi @MadsGosvig, I've recently fixed this in v1.4.1. It was failing for pages that didn't belong to any Site Definition (i.e. floating pages). Thanks