NPE fix, give proper error message instead.
diff --git a/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/PrintTextWithDocgenSubstitutionsDirective.java b/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/PrintTextWithDocgenSubstitutionsDirective.java
index 44dc1f3..ecbbe87 100644
--- a/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/PrintTextWithDocgenSubstitutionsDirective.java
+++ b/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/PrintTextWithDocgenSubstitutionsDirective.java
@@ -209,8 +209,13 @@
                         + " where <symbolicName> is in " + transform.getInsertableFiles().keySet() + ".");
             }
             String symbolicName = symbolicNameStep.substring(1);
-            Path symbolicNamePath = transform.getInsertableFiles().get(symbolicName)
-                    .toAbsolutePath().normalize();
+            Path symbolicNamePath = transform.getInsertableFiles().get(symbolicName);
+            if (symbolicNamePath == null) {
+                throw newErrorInDocgenTag("Symbolic insertable file name "
+                        + StringUtil.jQuote(symbolicName) + " is not amongst the defined names: "
+                        + transform.getInsertableFiles().keySet());
+            }
+            symbolicNamePath = symbolicNamePath.toAbsolutePath().normalize();
             Path resolvedFilePath = slashIndex != -1
                     ? symbolicNamePath.resolve(pathArg.substring(slashIndex + 1))
                     : symbolicNamePath;