Wicket
  1. Wicket
  2. WICKET-4152

NPE in CachingResourceStreamLocator due to the search in parent's markup in Autolink code

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.5.2
    • Component/s: wicket
    • Labels:
      None

      Description

      Trying to open http://localhost:8080/mappers/en_US (Request Mapper examples) the following exception is thrown:

      java.lang.NullPointerException
      at org.apache.wicket.util.resource.locator.caching.CachingResourceStreamLocator.locate(CachingResourceStreamLocator.java:114)
      at org.apache.wicket.request.resource.PackageResource.exists(PackageResource.java:442)
      at org.apache.wicket.markup.resolver.AutoLinkResolver$ResourceReferenceAutolink.<init>(AutoLinkResolver.java:583)
      at org.apache.wicket.markup.resolver.AutoLinkResolver$AbstractAutolinkResolverDelegate.newPackageResourceReferenceAutoComponent(AutoLinkResolver.java:113)
      at org.apache.wicket.markup.resolver.AutoLinkResolver$AnchorResolverDelegate.newAutoComponent(AutoLinkResolver.java:483)
      at org.apache.wicket.markup.resolver.AutoLinkResolver.resolveAutomaticLink(AutoLinkResolver.java:876)
      at org.apache.wicket.markup.resolver.AutoLinkResolver.resolve(AutoLinkResolver.java:808)
      ..

      It is caused by my fix for WICKET-4141 from yesterday.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Martin Grigorov
              Reporter:
              Martin Grigorov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development