This project is read-only.
1

Resolved

Exception thrown if AuthorUrls not defined for plug-in

description

  1. Create plug-in.
  2. Add AuthorUrl attribute but not AuthorUrls
  3. Navigate to Admin/Plugins
     
    Expected:
     
    Author is hyperlinked with AuthorUrl
     
    Actual:
     
    Null reference exception is thrown in HtmlHelperExtensions:
     
    return htmlHelper.LinkOrDefault(authors[0].CleanText(), authorUrls.Length == 1 ? authorUrls[0].CleanHref() : "");
     
    Is AuthorUrl needed? Won't AuthorUrls just work?

comments

ErikPorter wrote Jun 3, 2009 at 11:14 PM

Sorry about that. I removed the extension methods and property definition for AuthorUrl last night, but forgot to remove AuthorUrlAttribute. You're right that only AuthorUrls is needed. Get latest and you should be fine (by only using AuthorUrlsAttribute).

wrote Jun 3, 2009 at 11:14 PM

wrote Feb 21, 2013 at 11:43 PM

wrote May 16, 2013 at 11:38 AM

wrote May 16, 2013 at 11:38 AM

wrote Jun 14, 2013 at 8:23 AM