fix NPE in requirements renderer

This commit is contained in:
Grahame Grieve 2023-04-02 23:07:52 +10:00
parent 138a8cdb2d
commit 0188fcedd1
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ public class RequirementsRenderer extends ResourceRenderer {
}
Resource r = context.getWorker().fetchResource(Resource.class, url, req);
ResourceWithReference t = null;
if (r == null) {
if (r == null && context.getResolver() != null) {
t = context.getResolver().resolve(context, url);
}
if (r != null) {