Skip to content

Commit

Permalink
Add templates that weren't known yet to template map upon discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuhn committed Jul 5, 2023
1 parent 9c01aea commit 556f672
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/knowledgepixels/nanodash/Template.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public static Template getTemplate(String id) {
if (template != null) return template;
if (id.startsWith("file://") || TrustyUriUtils.isPotentialTrustyUri(id)) {
try {
return new Template(id);
Template t = new Template(id);
templateMap.put(id, t);
return t;
} catch (Exception ex) {
System.err.println("Exception: " + ex.getMessage());
return null;
Expand Down

0 comments on commit 556f672

Please sign in to comment.